Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compilers > #1094 > unrolled thread
| Started by | "Nils M Holm" <nmh@t3x.org> |
|---|---|
| First post | 2014-02-16 12:51 +0100 |
| Last post | 2014-03-06 23:12 -0800 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.compilers
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
| From | "Nils M Holm" <nmh@t3x.org> |
|---|---|
| Date | 2014-02-16 12:51 +0100 |
| Subject | SubC ported to Freebsd/armv6 (Raspi) |
| Message-ID | <14-02-015@comp.compilers> |
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! -- Nils M Holm < n m h @ t 3 x . o r g > www.t3x.org
[toc] | [next] | [standalone]
| From | Kaz Kylheku <kaz@kylheku.com> |
|---|---|
| Date | 2014-02-17 00:45 +0000 |
| Message-ID | <14-02-016@comp.compilers> |
| In reply to | #1094 |
On 2014-02-16, Nils M Holm <nmh@t3x.org> 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. A source-source translator could possibly transform a larger subset of the C language to SubC.
[toc] | [prev] | [next] | [standalone]
| From | alexfrunews@gmail.com |
|---|---|
| Date | 2014-03-06 23:12 -0800 |
| Message-ID | <14-03-013@comp.compilers> |
| In reply to | #1094 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.compilers
csiph-web