the flags apply to gcc...
you can only add PNO resources to a pre-CWv9 project if you add a rcp
(PilRC) file and use a DATA resource. however, you cant use cw8.3 to create
the "armlet".

markus dresch (www.palmside.com)


"Dan Patrutiu" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
>
>     I just wanted to build the 'non-standard' code. I read in the docs
that
> I can include that code into a CW project as a resource and execute it
from
> there. Are these the appropriate steps? I am using CW 8.3. Can I include
the
> ARMlet resource with it, or do I need V9?
>    On the other side, can you be more specific with the flags, and where
> should I put it and what should I do after?
>
>    I will join the pno-forum when the confirmation email will come to my
> address :)
>
> Thanks in advance,
> Dan Patrutiu
>
> "Aaron Ardiri" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> >
> > > I installed prc-tools and SDK 5, the m68k tools work, but when I try
to
> > > do something with the arm tools, the error message is:
> > > /usr/arm-palmos/bin/ld: cannot open crt0.o: No such file or directory
> > >
> > > How can I build the correct .o file or where can I get it dirrectly?
> >
> > you cannot build a standard application using arm-palmos-gcc
> >
> > you can only build a 'non standard' object code based on C source
> > (ie: it has no startup nada - and, you call it via PceNativeCall)
> >
> > ---
> > # compiler flags
> > 68K_CC   = -nostartfiles -O2
> > ARM_CC   = -nostartfiles -mshort-load-bytes -ffixed-r9 -O2
> >
> > # compile requirements
> > all:
> >  PREFIX=m68k-palmos- make 68k-convert.xxx
> >  PREFIX=arm-palmos-  make arm-convert.xxx
> >
> > 68k-convert.xxx:
> >  $(CC) $(68K_CC) -o convert.out convert.c
> >  $(OBJCOPY) -O binary convert.out 68k-convert.xxx
> >  make clean
> >
> > arm-convert.xxx:
> >  $(CC) $(ARM_CC) -DARM -DNATIVE -o convert.out convert.c
> >  $(OBJCOPY) -O binary convert.out arm-convert.xxx
> >  make clean
> > ---
> >
> > then, i can link 68k-convert.xxx and arm-convert.xxx as resources
> > into my application and execute them via:
> >
> >   68k - function pointer
> >   arm - PceNativeCall
> >
> > note: you are going to run into serious problems with the use of
> > global variables etc. PNO (*spew*) - Palm Native Object is what
> > they are now called - someone didn't like the use of the word
> > 'armlet' or 'simlet'.
> >
> > there is a development forum specific to this type of stuff. you
> > might want to join and get more insight there.
> >
> > ---
> > Aaron Ardiri                        [EMAIL PROTECTED]
> > CEO - CTO                                           +46 70 656 1143
> > Mobile Wizardry                      http://www.mobilewizardry.com/
> >
> >
> >
>
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to