On Wed, 17 May 2017 16:11:01 +0000 "John R. Hogerhuis" <[email protected]> wrote:
> Hi Willard, >Very exciting stuff. I was a little fried by this at the end of April but yeah, I compile some test case and run it, and I stop and go "Wow, I just ran a C program on my Model 100!" :-) >Have you tried structs at all? Just started working with them a couple of days ago. No weird padding, but I still haven't tested if all element names live in the same namespace or if each struct is a seperate namespace. (K&R left it implementation dependant, but I think newer ANSI revs have made seperate namespaces mandatory, because C++.) As an aside, I'm kind of loving Small C, because it's gloriously lacking all the C++ junk that has snuck into plain C. > I had downloaded a > version of small c off of github that had 8085 support but I couldn't > get a struct test to work. Not sure what I was doing wrong. Well traditional Small C doesn't do structs. The specific compiler I'm supporting has been expanded even beyond Small C version 3 (which, AFAIK, is the current unofficial standard). > As an aside, my Sdcc 8085 code generator project is kind of stalled > out. I'm having trouble understanding some of the code. Reading one > of my college compiler theory books, maybe that will help. Compilers are hard, and the 808x isn't particularly compiler-friendly. So there's 2 pretty major obstacles before you even got started. Good luck with it! > > -- John. Willard -- Willard Goosey [email protected] Socorro, New Mexico, USA I search my heart and find Cimmeria, land of Darkness and the Night. -- R.E. Howard
