"Steven Woody" <narkewoody@gmail.com> wrote in message news:1136604497.203688.300630@g49g2000cwa.googlegroups.com...> > Chuck F. wrote: > > Steven Woody wrote: > > > > > > we have a IAR EWB C/C++ IDE. i want to know if the product > > > support command line compile a c project? and, does it support > > > something like compile using Makefile ? > > > > Any compiler for any language on any system supports using a > > makefile. If the compiler doesn't return success/failure status > > the interaction with the make program will not be good. You need > > only read the documentation of your make program. > > > > i believe it is right in theory. but finding out how to properly pass > many options to compiler and linker without a simple example is very > hard as i think. especiall, beside the object files, IAR's linker has > a command file as it's parameter, i don't know how to use or generate > it. > > so i like to know, is there anyone successfully do a Makefile for a IAR > embeded project ? if so, i just want an example. thanks.Create a simple project in the IDE that has the options you require - build it - look in the 'build' output window to find the command line it is using - copy this into your makefile. Regards, Richard. http://www.FreeRTOS.org
Does IAR Embedded Workbench IDE Support Command-Line Compile ?
Started by ●January 6, 2006
Reply by ●January 7, 20062006-01-07
Reply by ●January 8, 20062006-01-08
Richard wrote:> "Steven Woody" <narkewoody@gmail.com> wrote in message > news:1136604497.203688.300630@g49g2000cwa.googlegroups.com... > > > > Chuck F. wrote: > > > Steven Woody wrote: > > > > > > > > we have a IAR EWB C/C++ IDE. i want to know if the product > > > > support command line compile a c project? and, does it support > > > > something like compile using Makefile ? > > > > > > Any compiler for any language on any system supports using a > > > makefile. If the compiler doesn't return success/failure status > > > the interaction with the make program will not be good. You need > > > only read the documentation of your make program. > > > > > > > i believe it is right in theory. but finding out how to properly pass > > many options to compiler and linker without a simple example is very > > hard as i think. especiall, beside the object files, IAR's linker has > > a command file as it's parameter, i don't know how to use or generate > > it. > > > > so i like to know, is there anyone successfully do a Makefile for a IAR > > embeded project ? if so, i just want an example. thanks. > > > Create a simple project in the IDE that has the options you require - build > it - look in the 'build' output window to find the command line it is > using - copy this into your makefile. >sounds a good idea :)
Reply by ●January 9, 20062006-01-09
Richard wrote:> "Steven Woody" <narkewoody@gmail.com> wrote in message > news:1136604497.203688.300630@g49g2000cwa.googlegroups.com... > > > > Chuck F. wrote: > > > Steven Woody wrote: > > > > > > > > we have a IAR EWB C/C++ IDE. i want to know if the product > > > > support command line compile a c project? and, does it support > > > > something like compile using Makefile ? > > > > > > Any compiler for any language on any system supports using a > > > makefile. If the compiler doesn't return success/failure status > > > the interaction with the make program will not be good. You need > > > only read the documentation of your make program. > > > > > > > i believe it is right in theory. but finding out how to properly pass > > many options to compiler and linker without a simple example is very > > hard as i think. especiall, beside the object files, IAR's linker has > > a command file as it's parameter, i don't know how to use or generate > > it. > > > > so i like to know, is there anyone successfully do a Makefile for a IAR > > embeded project ? if so, i just want an example. thanks. > > > Create a simple project in the IDE that has the options you require - build > it - look in the 'build' output window to find the command line it is > using - copy this into your makefile. >Thank You All .