Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #1468
| From | Dave Higton <davehigton@dsl.pipex.com> |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: Using GCC for embedded projects |
| Date | 2012-03-04 21:54 +0000 |
| Organization | Home |
| Message-ID | <e2aa5e6b52.davehigton@dsl.pipex.com> (permalink) |
| References | <b5e2466b52.davehigton@dsl.pipex.com> <Dnl*2Po1t@news.chiark.greenend.org.uk> |
In message <Dnl*2Po1t@news.chiark.greenend.org.uk>
Theo Markettos <theom+news@chiark.greenend.org.uk> wrote:
> Dave Higton <davehigton@dsl.pipex.com> wrote:
> > Is it possible to use RISC OS GCC to generate binaries to run on ARM
> > embedded processors?
>
> I can't say for sure, but I've used RISC OS GCC (as a cross compiler on
> Linux) to compile the Linux kernel for ARM. So the chances are probably
> good.
>
> > 1) Can GCC generate Thumb code? (Presumably with a switch like
> > -march=cortex-m0 or something like that?)
>
> You probably want -mthumb:
> http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
>
> > 2) Can GCC avoid relying on the shared C library? For example, what code
> > will be generated if arithmetic is done at run-time?
>
> There's an option -nostdinc which doesn't pull in the standard headers.
> Not sure the position on linking, but there may be a similar option.
>
> > 3) How do I specify locations for the various segments?
>
> Pass. Find out what the usual options are and see if they work on RISC
> OS. They may well do. John Tytgat on the GCCSDK list will know for sure.
OK, thanks, Theo.
Dave
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
Using GCC for embedded projects Dave Higton <davehigton@dsl.pipex.com> - 2012-03-04 17:34 +0000
Re: Using GCC for embedded projects Theo Markettos <theom+news@chiark.greenend.org.uk> - 2012-03-04 17:43 +0000
Re: Using GCC for embedded projects Dave Higton <davehigton@dsl.pipex.com> - 2012-03-04 21:54 +0000
csiph-web