unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* M2-Planet latest release
@ 2018-06-22  1:55 Jeremiah
  2018-06-22  7:06 ` Pierre Neidhardt
  2018-06-22 17:19 ` [bootstrappable] " Jan Nieuwenhuizen
  0 siblings, 2 replies; 5+ messages in thread
From: Jeremiah @ 2018-06-22  1:55 UTC (permalink / raw)
  To: bootstrappable, rb-general, guix-devel

Today I proud to announce M2-Planet version 0.2.0
https://github.com/oriansj/M2-Planet
The world's simplest C compiler with support for:
structs with sizeof support
anonymous unions (inside of structs)
arrays
Inline assembly
Gotos
for, while and do loops with optional breaks
bitshifting
bitwise operations
escaped strings
Passable function pointers
Written and self-hosting in a lovely C99 subset
optional dwarf footers (thanks to mescc-tools blood-elf) allowing for
objdump and gdb to play nicely
and 100% deterministic output

Able to be bootstrapped from a trivial Macro-assembler and hex2-linker
(which when hand made are under 3KB total)
which can be found here:
https://github.com/oriansj/mescc-tools
or via any C compiler that supports only 60% of the features of M2-Planet 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: M2-Planet latest release
  2018-06-22  1:55 M2-Planet latest release Jeremiah
@ 2018-06-22  7:06 ` Pierre Neidhardt
  2018-06-22 11:27   ` [bootstrappable] " Orians, Jeremiah (DTMB)
  2018-06-22 17:19 ` [bootstrappable] " Jan Nieuwenhuizen
  1 sibling, 1 reply; 5+ messages in thread
From: Pierre Neidhardt @ 2018-06-22  7:06 UTC (permalink / raw)
  To: Jeremiah; +Cc: rb-general, guix-devel, bootstrappable

[-- Attachment #1: Type: text/plain, Size: 184 bytes --]

Looks nice!  How do it compare to tcc?  (http://www.tinycc.org/)

-- 
Pierre Neidhardt

Everyone has a purpose in life.  Perhaps yours is watching television.
- David Letterman

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* M2-Planet latest release
@ 2018-06-22 11:14 Orians, Jeremiah (DTMB)
  0 siblings, 0 replies; 5+ messages in thread
From: Orians, Jeremiah (DTMB) @ 2018-06-22 11:14 UTC (permalink / raw)
  To: rb-general@lists.reproducible-builds.org, guix-devel@gnu.org

Today I proud to announce M2-Planet version 0.2.0 https://github.com/oriansj/M2-Planet 
The world's simplest C compiler with support for:
structs with sizeof support
anonymous unions (inside of structs)
arrays
Inline assembly
Gotos
for, while and do loops with optional breaks bitshifting bitwise operations escaped strings Passable function pointers Written and self-hosting in a lovely C99 subset optional dwarf footers (thanks to mescc-tools blood-elf) allowing for objdump and gdb to play nicely and 100% deterministic output

Able to be bootstrapped from a trivial Macro-assembler and hex2-linker (which when hand made are under 3KB total) which can be found here:
https://github.com/oriansj/mescc-tools 
or via any C compiler that supports only 60% of the features of M2-Planet

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [bootstrappable] Re: M2-Planet latest release
  2018-06-22  7:06 ` Pierre Neidhardt
@ 2018-06-22 11:27   ` Orians, Jeremiah (DTMB)
  0 siblings, 0 replies; 5+ messages in thread
From: Orians, Jeremiah (DTMB) @ 2018-06-22 11:27 UTC (permalink / raw)
  To: bootstrappable@freelists.org
  Cc: rb-general@lists.reproducible-builds.org, guix-devel@gnu.org

> Looks nice!  How do it compare to tcc?  (http://www.tinycc.org/)

Well at only 1,607 lines of code:
an order of magnitude smaller
less dependencies
simpler build
less complete support for c99
No optimization phase
No preprocessor (nor need for one)
Doesn't support // line comments

Generally what you'd expect for a compiler optimized for bootstrapping bigger compilers

-Jeremiah
Cell phone: (517) 896-2948
On Signal and Riot

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [bootstrappable] M2-Planet latest release
  2018-06-22  1:55 M2-Planet latest release Jeremiah
  2018-06-22  7:06 ` Pierre Neidhardt
@ 2018-06-22 17:19 ` Jan Nieuwenhuizen
  1 sibling, 0 replies; 5+ messages in thread
From: Jan Nieuwenhuizen @ 2018-06-22 17:19 UTC (permalink / raw)
  To: Jeremiah; +Cc: rb-general, guix-devel, bootstrappable


> Today I proud to announce M2-Planet version 0.2.0
> https://github.com/oriansj/M2-Planet
> The world's simplest C compiler

Congratulations, and wonderful!

I guess it's ready now to bootstrap mes.c, the world most bootstrap-ready
Scheme interpreter?

> https://github.com/oriansj/mescc-tools
> or via any C compiler that supports only 60% of the features of M2-Planet 

> Able to be bootstrapped from a trivial Macro-assembler and hex2-linker
> (which when hand made are under 3KB total)
> which can be found here:
> https://github.com/oriansj/mescc-tools
> or via any C compiler that supports only 60% of the features of M2-Planet 

And very bootstrappable!

janneke

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-06-22 17:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-22  1:55 M2-Planet latest release Jeremiah
2018-06-22  7:06 ` Pierre Neidhardt
2018-06-22 11:27   ` [bootstrappable] " Orians, Jeremiah (DTMB)
2018-06-22 17:19 ` [bootstrappable] " Jan Nieuwenhuizen
  -- strict thread matches above, loose matches on Subject: below --
2018-06-22 11:14 Orians, Jeremiah (DTMB)

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).