eltonjohn
Advanced Member level 4
#pragma asm
I have to use some assembler code in the middle of a routine . So i decided to use the in line assemby .. But it's kind of heavy .
because what the compiler does is to produce an SRC file . .
that i need later to assemble ..
That appears to me very mediocre for a compiler .Why not just
call the assembler directly and produce the machine code tranparently.
There are ocasions where probably is ok .But i only need to code 4 to 5 assembly lines , here and there ...
As i see the best way is to create a shell function with the assembler in a separate file and call that function ... JUST WHAT I WANTED TO AVOID ..
I dont want to create a separate code SEGMENT EITHER
does anybody know another way ???
Please explain ..
I have to use some assembler code in the middle of a routine . So i decided to use the in line assemby .. But it's kind of heavy .
because what the compiler does is to produce an SRC file . .
that i need later to assemble ..
That appears to me very mediocre for a compiler .Why not just
call the assembler directly and produce the machine code tranparently.
There are ocasions where probably is ok .But i only need to code 4 to 5 assembly lines , here and there ...
As i see the best way is to create a shell function with the assembler in a separate file and call that function ... JUST WHAT I WANTED TO AVOID ..
I dont want to create a separate code SEGMENT EITHER
does anybody know another way ???
Please explain ..