PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Trouble adding .asm in my EVC4 project. Please help!

Hello all!

I'm trying to add an .asm file to my EVC4 project written in C++.
I succeeded in adding that file in the project (as described in FAQ) and it compiles without errors, but linker emits the following message:
"\armutils.obj : fatal error LNK1112: module machine type 'THUMB' conflicts with target machine type 'ARM'".
It keeps emitting this no matter what command line options I specify for assembler (I tried -32, all possible values of -arch and -cpu - doesn't change anything).

What is the correct command line for EVT's armasm.exe? Or maybe I'm doing something wrong? Please help me.
Check the assembler file itself for a THUMB directive. If you're wanting it to run/link on generic ARM PocketPCs, it shouldn't have any block of code marked THUMB (or use Thumb code at all, obviously).

My current compile line for armasm is:
Code:
armasm -arch 4 -cpu strongarm1 -o file.o file.asm


(The -arch and -cpu aren't strictly necessary but forcing it to my device type doesn't hurt either).

I've noticed that the armasm.exe is pretty stupid sometimes (it happily lets you compile illegal instructions and doesn't give errors, for example)...