[bootstrappable] Re: Bootstrapping from a hex editor

  • From: "Orians, Jeremiah (DTMB)" <OriansJ@xxxxxxxxxxxx>
  • To: "bootstrappable@xxxxxxxxxxxxx" <bootstrappable@xxxxxxxxxxxxx>
  • Date: Thu, 9 Nov 2017 17:17:10 +0000

I have a different opinion on this: for me a hand written code is not a 
guarantee that it will be more readable or maintainable than a generated
code. As an example, a hand written parser does not guarantee that it will be 
more readable for me than a Bison generated one. It can be more
readable, but it might also be less readable. As another example, a generated 
assembly by gcc is not very readable for me, and I much prefer a
well documented hand written asssembly.
Show me a Bison generated parser for C that is more readable than this:
https://github.com/oriansj/M2-Planet/blob/master/cc_reader.c


It's this file right?
https://gitlab.com/janneke/mes/blob/ef69b7a28ab11581950afebc1ba3ad1844f20316/src/mes.c
Essentially, the helpful work would be to remove some C constructs in that 
file (at the expense of possibly making the file longer), so that your
 C compiler does not have to implement them, correct?
Yes that is one thing that could be rather helpful

Other related posts: