This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

GETTING ERROR WHILE COMPILING #pragma src

HI
all ,
i have c programme its around 600lines of coding , bcos of the code size constraint i have to convert it to asm , i used src ie
#pragma src.when i compiled i got error
210,input file error.but when i searched *.src file the code is converted to assembly
and i added in my project then compiling
shows no errors but still iam not getting the
output.

regrads
john

Parents
  • "i have c programme its around 600 lines of coding , bcos [sic] of the code size constraint i have to convert it to asm"

    If your 'C' coding is as lazy as this (how hard is it to write "because" properly?), it's not surprising that you get bloated code!

    Assembler is not magic - if you can't write efficiently in 'C', you may well end up getting worse results in assembler!

    Have you reviewed the efficiency of your 'C' code before deciding to resort to assembler?

    There was a recent thread here on writing efficiently in C51, and the Manual has a whole chapter on it.

    What optimiser settings are you using?

Reply
  • "i have c programme its around 600 lines of coding , bcos [sic] of the code size constraint i have to convert it to asm"

    If your 'C' coding is as lazy as this (how hard is it to write "because" properly?), it's not surprising that you get bloated code!

    Assembler is not magic - if you can't write efficiently in 'C', you may well end up getting worse results in assembler!

    Have you reviewed the efficiency of your 'C' code before deciding to resort to assembler?

    There was a recent thread here on writing efficiently in C51, and the Manual has a whole chapter on it.

    What optimiser settings are you using?

Children