From: SourceForge.net <no...@so...> - 2010-01-03 20:58:07
|
Bugs item #2919991, was opened at 2009-12-23 12:52 Message generated for change (Settings changed) made by borutr You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=2919991&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: C Preprocessor >Group: non bugs >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: kazu1108 (kazu1108) >Assigned to: Borut Ražem (borutr) Summary: #Pragma preproc_asm cannot be used by -- std-c99. Initial Comment: Preproc_asm did not accept __asm though I tried to use preproc_asm by --std-c99. However, it was possible to use it by using _asm by --std-sdcc99. I want to use preproc_asm by --std-c99. #pragma preproc_asm - #define ThreeNops __asm NOP NOP NOP __endasm #pragma preproc_asm + It is not possible to compile by --std-c99 though this source can be compiled in --std-sdcc99. ---------------------------------------------------------------------- >Comment By: Borut Ražem (borutr) Date: 2010-01-03 21:58 Message: Your version doesn't work -std-sdcc99 nor with --std-c99 and the #pragma preproc_asm doesn't change anything. The proper solution for your problem is: #define ThreeNops __asm \ NOP \ __endasm; \ __asm \ NOP \ __endasm; \ __asm \ NOP \ __endasm or #define Nop __asm NOP __endasm #define ThreeNops Nop; Nop; Nop The example for #pragma preproc_asm in the sdccman is wrong! Borut ---------------------------------------------------------------------- Comment By: kazu1108 (kazu1108) Date: 2009-12-23 12:55 Message: I'm sorry. It forgot to write the version. SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.9.4 #5573 (Dec 1 2009) (CYGWIN) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=2919991&group_id=599 |