nibot ([personal profile] nibot) wrote2005-07-01 03:39 pm

annoying software

When I was very little and learning Pascal, I had only the foggiest notion of machine code and no idea about linkers and loaders whatsoever. I could, however, write a program in Pascal and then the compiler would magically turn it into an executable (EXE!) file. The only way I could conceive to write a compiler myself was this: To write a program that was really an interpreter, and then, to "compile" some source, I would concatenate the executable of my interpreter and the source to be "compiled." The interpreter would know, when run, to examine itself, seek to the point where its own executable code ended, and find the program it was suppose to interpret. Presto! A program to generate self-running exectables from source code! But it was not, of course, in any sense a compiler.

As far as I can tell, this is pretty much how the Matlab compiler works.

[identity profile] warmenhoven.livejournal.com 2005-07-01 09:23 pm (UTC)(link)
That's also how perlcc works (at least in version 5).

Herm?

[identity profile] caerglas.livejournal.com 2005-07-02 10:33 am (UTC)(link)
Uhm. So I'm not sure if you're saying the Matlab computer is weak and whacky, a pale imitation of what a real computer should be like...

...or if you were a genius to think up an imitation of a compiler that would have worked, and been like this great computer you're working with now...

...or if there's a subtle computer-y thing that I'm missing out on. Herm.

Re: Herm?

[identity profile] nibot.livejournal.com 2005-07-05 02:51 pm (UTC)(link)
the first option. (-:

Ecohouse festivities

[identity profile] vyncentvega.livejournal.com 2005-07-05 01:29 am (UTC)(link)
Is that you over there making all that noise?

Re: Ecohouse festivities

[identity profile] nibot.livejournal.com 2005-07-05 02:52 pm (UTC)(link)
yup

so cute

[identity profile] librastorm.livejournal.com 2005-07-06 06:17 am (UTC)(link)
The picture with little Tobo is so cute! And the computer, what an antique! I remember in my grade school GATE class we had these old Tandys (or Commodores, I'm not sure) that would play games on tape. You put a tape in a device connected to the computer that looked just like a tape recorder, and literally pushed play. Ah, those were the days.