Hi,everyone!
Help me, please, with my problem!
i'm working in Keil C251 compiler.
i have to use assembler code into C code
and i found in C251 user's manual directives "#pragma asm/endasm". but i can't compile this.
compiler writes:
" 'asm/endasm' requires src-control
to be active ".
May be i must to do anything for working with asm/endasm directives, what i dont know. Or may be i'm in wrong way.
Please, help me!
Gennady.
Read-Only
Author Andrew Neil
Posted 4-Jun-2001 09:32 GMT
Toolset C251
RE: How to use assembler into C sourse code
Andrew Neil
See the Thread "How to compiler (sic) *.src file?"
Look up the message in the Errors help file (click on the message in the build results window, then press F1).
You need to use the command-line option (or uVision option) to tell the Compiler to generate .src.
See the C251 manual documentation on "#pragma asm/endasm
Read-Only
Author Andrew Kalenik
Posted 4-Jun-2001 12:10 GMT
Toolset C251
RE: How to use assembler into C sourse code
Andrew Kalenik
Write in your C-file <#pragma SRC> before the first <#pragma ASM> entry.
Read-Only
Author Andrew Neil
Posted 4-Jun-2001 13:43 GMT
Toolset C251
RE: How to use assembler into C sourse code
Andrew Neil
That's right: like the error message said, and as the manual tells you, you must use the 'SRC' control for any 'C' source file which uses inline assembler.
You can place the 'SRC' control on the compiler command line, in a #pragma in the source file, or use the uVision dialogues.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.