This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: So confused
- From: <tm_gccmail at kloo dot net>
- To: Brett Beebe <beebeb at comcast dot net>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 21 Jun 2004 13:39:23 -0700 (PDT)
- Subject: Re: So confused
On Mon, 21 Jun 2004, Brett Beebe wrote:
> Hello,
>
...
> I compiled a cross compiler for the m68k-elf target. That was pretty easy
> once I found the proper information. I then compiled a test program I had
> from gcc version 2.95 to see what real changes there was. The biggest
> change was to call PalmOs functions requires a 'trap' instead of a 'bsr'.
>
> So right now I still have several options. I can modify gcc to produce a
> 'trap' instruction for calls to PalmOs or I can produce a PalmOs library,
> that would have all of the correct calls in it. So, for whatever reason I
> decided to modify the gcc code.
...
Uhhh, this is your mistake.
You probably want to build a header file that generates an inline trap
instruction for every PalmOS function call. This way, you avoid modifying
the compiler.
Toshi