2 ms·
have you tried bds c? it's fully free software now, runs under cp/m, and is reputed to be much nicer than aztec c, so i'm curious to hear your point of view
by kragen 3y ago
have you tried bds c? it's fully free software now, runs under cp/m, and is reputed to be much nicer than aztec c, so i'm curious to hear your point of view
fwiw i suspect implementing only ansi c function headers and declarations would result in a slightly smaller c compiler than implementing only the k&r style ones
- stevekemp 3y agoI downloaded it thanks to your comment, from this site: http://www.cpm.z80.de/develop.htm http://www.cpm.z80.de/develop.htm Worked first time to create a simple "Hello World" program, but many of the included examples fail to compile for me, with random errors: RM.C: 20: String too long (or missing quote) CP.C: 56: Curly-braces mismatched somewhere in this definition I'll have to explore more thoroughly later, but thanks for the prod!
- kragen 3y agohmm, that's disappointing! are there in fact missing quotes and mismatched curly braces in those files? i wonder if you got a corrupted copy of the compiler
- stevekemp 3y agoThe code looks good, there seems to be some surprises with files that use "#include <stdio.h>" or similar. The include-lines are the ones the errors refer to - but since those files come with the compiler distribution I'd have expected their contents to be well-formed. I removed the includes from a few files, changed FILEs to ints, and added "#define EOF -1", etc, which let some more simple code compile & link. But it felt like those changes shouldn't have been necessary. I guess the good news is the compiler ran without me having to add any new CP/M syscalls/bdos functions to my emulator - unlike hisoft which required that I implement "T_GET" (Get date and time) and a couple of other functions I'd been missing such as F_SIZE (For getting a file size).
- kragen 3y agoyeah, it seems like you got a kind of bad package? is it the same as the version from https://www.bdsoft.com/resources/bdsc.html https://www.bdsoft.com/resources/bdsc.html?