----- Original Message ----- From: "Robert Adsett" <subscriptions@...> To: <lpc2000@yahoogroups.com> Sent: Friday, April 15, 2005 11:24 AM Subject: Re: [lpc2000] Re: Q: Global variables with C and ASM / pass argument from ASM to C function ? > > At 01:25 PM 4/15/05 +0000, ateichtmann wrote: >> > You could take the simple way out. Write a quick function in C as a >> > template and compile it to asm to use as a template. >> >>I have no idea, how to create an asm template. >>These are the interesting and simple things that are never mentioned >>in a compiler documentation or book :-) > > Most compilers have a simple switch to generate assembly as the output > rather than an object file (something like cc -S). That's all you > need. Then you can take the generated assembly file and use it as a > template or as a tool to gather insight into the compilers operation. > Does anyone know how to do it in Keil? They have #pragma SRC in a manual, but it's not recognized by the compiler. No other options work either. All my attempts to get the answer from tech support ended up with the suggestion to use a compiler's listing file (what I beleive is not the same at all). Gennady
Message
Re: [lpc2000] Re: Q: Global variables with C and ASM / pass argument from ASM to C function ?
2005-04-15 by Gennady Palitsky
Attachments
- No local attachments were found for this message.