#pragma NO_ENTRY: No Entry CodeScopeFunction
Syntax"#pragma NO_ENTRY"
SynonymNone
ArgumentsNone
DefaultNone
DescriptionThis pragma suppresses the generation of the entry code and is useful for inline assembler functions.
The code generated in a function with #pragma NO_ENTRY may not be safe. It is assumed that the user ensures stack use.
NOTENot all backends support this pragma. Some still generate entry code even if this pragma is specified.
ExampleListing 1.11 shows how to use the NO_ENTRY pragma (along with others) to avoid any generated code by the compiler. All code is written in inline assembler.
Listing 1.11 Blocking Compiler-generated Function Management InstructionsSee also#pragma NO_ENTRY #pragma NO_EXIT #pragma NO_FRAME #pragma NO_RETURN void Func0(void) { asm {/* no code should be writen by the compiler.*/ ... } }
I misread your post. I apologize for the confusion.
Thanks to Technoman64 for correctly reading the original post and a solution.
nanoGeek, let me know if you need more help.
Distracted by a miserable head cold,
Marc.
Marc,
no problem. Hope you get to feeling better soon.
As for this issue, CW for CF doesn't have the pragmas that Technoman64 indicated. The only solutions I have found are:
1) move the ISR to a *.s file
2) use the function level asm option on the ISR:
__declspec(interrupt) asm void ISR(void){ .. }
(I was originally using the statement level asm directive)
Unfortunately, both options push one squarely into assembly. For my current project, that isn't a problem since it is in assembly anyway. Also, I can't really make a case for having mixed C/ASM in this situation since it is a pretty rare case that you would want the ISR to access the intterupt stack frame anyway (this ISR is for processing TRACE and ILLOP interrupts as part of a Dbug code port).
Thanks!
[Insert sarcastic participation here]
Euh, for general questions on how the forum works, posts should be on the General Use Board.
[End of sarcastic participation]
Question is awright here, otherwise Mod would have moved it to the appropriate board. Isn't it what the Mod should do ?
Unfortunately I don't have a clue and can't have your subject progressing.
If your project is blocked or absolutely need an answer, please Submit a Service Request against CodeWarrior as it's the 'formal' system with guarantee of service... http://www.freescale.com/TechSupport shows a dashboard of possibilities.
Cheers,
Alban. - {Sacartic Mod}
This post is off-topic for this forum. Have you tried posting this question to the new 68K/Coldfire forum?
http://forums.freescale.com/freescale/board?board.id=CFCOMM
Marc.