Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/10/03 22:57
Read: times


 
#58242 - Problems with inline assembly code in c
Hi, i'm using Keil C51 c compiler and i need to insert some time critical routines coded in assembly into my c program.
I use the pragmas
#pragma asm

#pragma endasm

I try to compile the thing but i get an "error C272: 'asm/endasm' requires src-control to be active"
So i go into the options and under "compiler control string" i add the "SRC" command. The command appears then listed under "compiler control string".
I start again the compiler and i get a new error:
compiling prova.c...
linking...
BL51 BANKED LINKER/LOCATER V5.03
COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2002
"prova.obj"
TO "prova1"
RAMSIZE(256)
CODE( 0X0000-0X3FFF )
XDATA( 0X0000-0X03FF )
*** FATAL ERROR L210: I/O ERROR ON INPUT FILE:
EXCEPTION 0021H: PATH OR FILE NOT FOUND
FILE: prova.obj

Why doesn't it work?
Can you help me?

Thanks.

List of 7 messages in thread
TopicAuthorDate
Problems with inline assembly code in c            01/01/70 00:00      
   RE: Problems with inline assembly code in c            01/01/70 00:00      
      RE: Problems with inline assembly code in c            01/01/70 00:00      
   RE: Problems with inline assembly code in c            01/01/70 00:00      
      RE: Problems with inline assembly code in c            01/01/70 00:00      
         RE: Problems with inline assembly code in c            01/01/70 00:00      
      inline assembly - AVOID!            01/01/70 00:00      

Back to Subject List