2 ms·
When I read "very small C" I'm reminded of the BD Software C compiler I used about 35 years ago for the 8080/Z80 and CP/M. It was relatively complete K&R C exc
by PhantomGremlin 11y ago
When I read "very small C" I'm reminded of the BD Software C compiler I used about 35 years ago for the 8080/Z80 and CP/M.
It was relatively complete K&R C except for no floating point support. It comfortably ran in under 64K bytes of memory. That's 64 kilobytes, or as they now say kibibytes!
It was quite fast to compile. It was also quite fast to run, since it generated true object code, no run-time interpreter needed.
It's now open source and public domain.
http://www.bdsoft.com/resources/bdsc.html http://www.bdsoft.com/resources/bdsc.html
- zik 11y agoVery nice. This is the kind of philosophy I was thinking about when I wrote it.
- wallaceowen21 11y agoAs I recall BDS stood for "Brain Damaged Software", a joke made by Leor Zolman, the author. Leor had not taken a compiler construction class, so it's not a recursive descent parser and can be confused by overly complex expressions. It also wrote the generated code into the memory that held the source, expecting that the generated code took fewer bytes than the source it was replacing.