- Forum
- General
Topic # 112 |
Conditional Compilation and ASM blocks |
2010.02.23 2:39 PM by stefanhanoi

visitor
Join Date 2010.01.19 Location: Hanoi, Vietnam |
Hi,again some strange behaviours ....I have several blocks like:{$IFDEF myPara} ASM <some assembler code here> END; {$ELSE} ASM <some assembler code here> END; {$ENDIF}
When I look at the .asm file.... In the block that gets compiled (if defined), the last END; is missing in the output file. Ok, not really a bug, just strange.And in one case, where the second block should get compiled (not defined), the whole part stays (wrongly) not compiled, like the first part (which is correct). The strange thing: if I insert a space character { $ELSE} instead of {$ELSE}, then that second part gets compiled, as it should be. Just the last END; again doesn't show up in the assembler file. According to the documentation, that space shouldn't be needed, no?Puzzled,Stefan |
|
|
|
Answer n° 1 -------- 2010.02.24 10:58 AM by PPA

Administrator

Join Date 2008.12.21 Location: France, IDF |
Hi,
For bad conditional compilation, I cannot reproduce it for now.
A space before $ELSE would make the directive a simple comment so this is very strange...
Can you give an exact snippet that reproduces the issue?
The final 'end' of asm block will be corrected in next version along with other asm blocks bad behaviors.
Regards, PMP team leader
|
|
 |
Answer n° 2 -------- 2010.03.03 01:55 AM by stefanhanoi

visitor
Join Date 2010.01.19 Location: Hanoi, Vietnam |
Hi PPA,
sorry for late reply, was busy in the last days.
That funny behaviour was days ago, and many versions of my code ago...
I tried yesterday to reproduce, but couldn't anymore.
My suspicion right now: Since I wasn't aware about the "forbidden" space between the brackets and the Dollar-Sign (thanks for that heads-up!), maybe there was something wrong with my Define statement initially.
Anyway, for now I'd say disregard it. I will continue to have a close look and come back if I see something.
"Sorry for inconvenience caused" ;)
Cheers,
Stefan |
|
|
 |
Answer n° 3 -------- 2010.03.03 8:09 PM by PPA

Administrator

Join Date 2008.12.21 Location: France, IDF |
Hi,
No problem, you're welcome at any time...
Best regards, PMP team leader
|
|
 |
 topic active
 topic closed
 Sticky
 New message -
 Correct message
 Close topic
 Make sticky
|