Re:How Difficult is it to Write a Compiler?
by gjm11 on Tuesday December 16, 2008 @08:07AM
(#399440)
Um, that's not what the paper does at all. There's exactly one invocation of gcc in the whole paper, and its only point is to enable the (human) developer to see what the calling convention for a function should look like. A couple of sentences after the one you quote we get: "Let's compile it using gcc [...] Generating this file from Scheme is straightforward." and then comes the very first compiler in the incrementally-improving series, which accepts a small integer and outputs assembler code for a function that returns that integer as its value.
[ Parent
| on HN ]
Re:How Difficult is it to Write a Compiler?
by silentbicycle on Tuesday December 16, 2008 @08:25AM
(#399455)
Right. He uses grabbing assembly output from gcc to demystify the process. (I guess I worded that poorly.)