??? 01/09/07 11:49 Read: times Msg Score: +1 +1 Informative |
#130482 - Welcome to the world of cross-platform development Responding to: ???'s previous message |
Attila Strba said:
So there are than specific codes adjusted for Keil and specific for SDCC. Absolutely! How do you think people produce application that run on both Windoze and UNIX, or Mac, etc...? But SDCC assembler doesn't support defines neither macros. So don't use it! The whole point of Assembler is that it gives you precisely what you ask for - nothing more, nothing less. Therefore, there is no reason why you can't use the Keil assembler to generate code to work with SDCC! HLL Language compilers, of course, are different - you have to conform to the compiler's rules & whims. That means I have to have different files for SDCC and Keil Not necessarily - see above this would make my life really hard. Who said it would be easy?? Because if I change something in Keil assembler file, I must be sure that I change the same thing for SDCC assembler file. Not if you're smart - see above. And I even don't have to mention that I have to have different includes, file lists etc, etc. Conditional compilation is a wonderful thing! One thing to note is that this probably is well beyond the capabilities of uVision's limited Project management facilities. You probably need to invest some time in learning how to use make... |