thank you. i have compiled and used code with this information.
now i am at another road block. there does not seem to be a "calloc" function. what is the best way to remedy this? i tried to add it to stdlib, but mspgcc has only header files, not the source code. would the best solution be to just write my own and include it in the same directory as the rest of the project? in addition, the iar code has a #pragma location=0xE864. what is the equivalent gcc code? i couldn't tell if gcc handled it correctly, or ignored it or what. thanks again. On 9/12/06, Steve Underwood <ste...@coppice.org> wrote:
Neil Wyper wrote: >On 9/12/06, ozzloy <ozz...@gmail.com> wrote: > > >>i am trying to convert code written for the IAR compiler to the msp430-gcc >>on windows. >>right now it is complaining about this line: >>__interrupt void ISRTimerA0 (void) >>IntService.c:11: syntax error before "void" >>i've read the following link. it's not enough information for me though. >>where is there more thorough documentation? >> http://mspgcc.sourceforge.net/faq/x55.html >>i am a newb at this, so anything at all will be useful. >>thank you. >> >> > >With GCC, you need to use a line like: >interrupt (TIMERA0_VECTOR) ISRTimerA0 (void) > >Also, you need "#include <signal.h>" for the definition of the >"interrupt" macro, and "#include <io.h>" for the vector definitions. > > We started working a little way towards cross-compiler compatibility. If you include "isr_compat.h" from our GCC distribution you can start the above interrupt service routine with: ISR(TIMERA0, ISRTimerA0) and it will work with GCC, IAR, Quadravox and CCE. Steve ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users