18

Compiling yourself

Comments
  • 0
    Fuck logic
  • 0
    So how was the first compilation of GCC done? Brain fuck 0.0
  • 7
    Probably the first version was all in assembly. And at one point someone wrote that in machine code. Got to start somewhere!

    Go is an easier example of bootstrapping to grock. After ~1.4 it became self built and written completely in Go (barring some ASM). So to fully build a modern version you use a C compiler to build an old go that was written in C, then use that to build a recent version.
  • 1
    @jshwkxneiwbd so who compile assembly? binary?
  • 2
    @faisalhakim47 you don't compile Assembly since you are just telling the cpu what to do. The manufacturers did add those functions already to the cpu.
  • 4
    @jandje5 @faisalhakim47 well to go the full way- assembly is complied into machine code by an assembler.

    You can write machine code by hand and enter it into the computer. (have you ever seen all those switches on old microcomputers?)

    More likely that assembler was compiled by a C compiler on a different machine where one existed.
  • 1
    @jshwkxneiwbd Oh yeah dumb me totally forgot about that. Like a year ago I played around in ASM last time on ms-dos 6.22 :) Used FASM as compiler I think.
Add Comment