Reply by Steven Woody 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 .
Reply by Steven Woody 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 Richard January 7, 20062006-01-07
"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
Reply by larwe January 6, 20062006-01-06
Steven Woody wrote:

> 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.
By the way - just so you know, the answer to this is yes - we have built MSP430 and NEC 78K0 projects with makefiles using MAKE from the free command-line edition of Borland C++ 5.5. I can't pull the files to tell you how it was done, but this is more to tell you that it IS possible (note that these were old versions of IAR). Note that we despise IAR and have successfully migrated away from them.
Reply by Steven Woody January 6, 20062006-01-06
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. - woody
Reply by larwe January 6, 20062006-01-06
Chuck F.  wrote:


> > Not if it's a Windows IDE which requires GUI interaction to > > perform the compile operation. > > > Even there. There is an underlying set of command line driven > programs, including the compiler and linker. I am thinking of
Like I said: "not if it's a Windows IDE which requires GUI interaction". If an IDE simply calls external command-line programs, then good - but there are unfortunately some that are totally "integrated" in the real monolithic single-executable sense of the word.
Reply by Chuck F. January 6, 20062006-01-06
Dave Hansen wrote:
> "larwe" <zwsdotcom@gmail.com> wrote: >> Chuck F. wrote: >> >>> Any compiler for any language on any system supports using a >>> makefile. If the compiler doesn't return success/failure >> >> Not if it's a Windows IDE which requires GUI interaction to >> perform the compile operation. > > I haven't seen Chuck's post on my newsreader yet, but as an > example... > > CodeVisionAVR, a C compiler targeting Atmel AVR microcontrollers > most emphatically does not support usage by make. You load all > your C files into a "project" in the GUI, and hit the "build" > button. Every C file is compiled every time. Rather than > object files, a big honkin ASM file is generated and passed to > an assembler. The application is "linked" at the ASM level. > > There is _no_ command line interface whatsoever. Many users > have been begging for one for some time, but the architecture of > the system apparently makes this difficult. Even if there was, > it would probably take the form of "build the project" rather > than "compile the file."
Hmm - ridiculous. I guess I stand corrected. Don't buy such silly systems. -- "If you want to post a followup via groups.google.com, don't use the broken "Reply" link at the bottom of the article. Click on "show options" at the top of the article, then click on the "Reply" at the bottom of the article headers." - Keith Thompson More details at: <http://cfaj.freeshell.org/google/>
Reply by Chuck F. January 6, 20062006-01-06
larwe wrote:
> Chuck F. wrote: > >> Any compiler for any language on any system supports using a >> makefile. If the compiler doesn't return success/failure >> status > > Not if it's a Windows IDE which requires GUI interaction to > perform the compile operation. >
Even there. There is an underlying set of command line driven programs, including the compiler and linker. I am thinking of Microsofts own stuff (Visual Studio etc.) here. I doubt that anybody elses stuff is fundamentally different. -- "If you want to post a followup via groups.google.com, don't use the broken "Reply" link at the bottom of the article. Click on "show options" at the top of the article, then click on the "Reply" at the bottom of the article headers." - Keith Thompson More details at: <http://cfaj.freeshell.org/google/>
Reply by Dave Hansen January 6, 20062006-01-06
On 6 Jan 2006 04:58:21 -0800 in comp.arch.embedded, "larwe"
<zwsdotcom@gmail.com> wrote:

> >Chuck F. wrote: > >> Any compiler for any language on any system supports using a >> makefile. If the compiler doesn't return success/failure status > >Not if it's a Windows IDE which requires GUI interaction to perform the >compile operation.
I haven't seen Chuck's post on my newsreader yet, but as an example... CodeVisionAVR, a C compiler targeting Atmel AVR microcontrollers most emphatically does not support usage by make. You load all your C files into a "project" in the GUI, and hit the "build" button. Every C file is compiled every time. Rather than object files, a big honkin ASM file is generated and passed to an assembler. The application is "linked" at the ASM level. There is _no_ command line interface whatsoever. Many users have been begging for one for some time, but the architecture of the system apparently makes this difficult. Even if there was, it would probably take the form of "build the project" rather than "compile the file." Regards, -=Dave -- Change is inevitable, progress is not.
Reply by larwe January 6, 20062006-01-06
Chuck F.  wrote:

> Any compiler for any language on any system supports using a > makefile. If the compiler doesn't return success/failure status
Not if it's a Windows IDE which requires GUI interaction to perform the compile operation.