This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]