We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hai all;
I am doing a project in LPC2368 with MCB2300 board.Here,I am doing In application programming by referring from C:\Keil\ARM\Flash\LPC_IAP2_512.After modification this program ,I can write and read from 512k FLASH memory.
This code is working fine in Realview compiler,but when I used with GNU compiler ,one assembly program "IAP.s" showing many error like "bad instruction".
Will you please tell me ,why I can't compile an assembly code in GNU compiler.
sincerely
shamsudheen OP
"This code is working fine in Realview compiler"
You mean the Realview Tool-Set.
The Tool-Set consists of more than just a Compiler - it also includes the Assembler, Linker, etc. See: http://www.keil.com/product/devproc.asp?t=arm&h=1
"why I can't compile an assembly code in GNU compiler"
You can't Compile any Assembly source in any Compiler!
A Compiler cannot translate Assembly source code - you need the appropriate Assembler for that.
The 'C' language is standardised; Assembly is not. Therefore it is highly unlikely that any assembly source written for one assembler will be compatible with another.