Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compilers > #1135
| From | alexfrunews@gmail.com |
|---|---|
| Newsgroups | comp.compilers |
| Subject | Re: SubC ported to Freebsd/armv6 (Raspi) |
| Date | 2014-03-06 23:12 -0800 |
| Organization | Compilers Central |
| Message-ID | <14-03-013@comp.compilers> (permalink) |
| References | <14-02-015@comp.compilers> |
On Sunday, February 16, 2014 3:51:02 AM UTC-8, Nils M Holm wrote:
> SubC is a fast and simple compiler for a clean subset of the
> C programming language. Its code is in the public domain. It
> can compile itself and passes gcc -Wall -pedantic.
>
> SubC generates small, statically linked executables (Hello World
> using printf() is less than 10 KB in size on a 386-based machine).
>
> I have recently retargeted the compiler to the armv6 processor
> and added runtime support for FreeBSD/arm, so if you are looking
> for a small and fast C subset compiler for the Raspi, feel free
> to give it a try! :-)
>
> If you intend to port the crt0 module to Linux, feel free to
> ask for assistance!
Good job. You may be interested in my Smaller C:
https://github.com/alexfru/SmallerC
Btw, it looks like you've got an lvalue bug here:
void *_va_arg(void **ap) {
return * ((void **) *ap)--;
}
The result of a cast is an rvalue and not an lvalue. -- requires an lvalue.
http://ideone.com/EGih2s (gcc C99 "strict" mode)
It may be worth upping the warning level.
Alex
Back to comp.compilers | Previous | Next — Previous in thread | Find similar | Unroll thread
SubC ported to Freebsd/armv6 (Raspi) "Nils M Holm" <nmh@t3x.org> - 2014-02-16 12:51 +0100 Re: SubC ported to Freebsd/armv6 (Raspi) Kaz Kylheku <kaz@kylheku.com> - 2014-02-17 00:45 +0000 Re: SubC ported to Freebsd/armv6 (Raspi) alexfrunews@gmail.com - 2014-03-06 23:12 -0800
csiph-web