Questions tagged [c]
For questions regarding the use or installation of the C language on retrocomputers.
5
questions
84
votes
8answers
32k views
Why do C to Z80 compilers produce poor code?
When reading some other questions about compiling C for the Z80,
How much benefit should be expected on a more advanced compiler for z80/r800 based computers?
Native C compiler for Sinclair ZX ...
10
votes
3answers
2k views
DOS, create pipe for stdin/stdout of command.com(or 4dos.com) in C or Batch?
I'm working on a retro project and was trying to create a pipe of stdin/out/err in DOS, but I can't find any functions to to this?
For instance the pipe() command from unistd.h isn't present in ...
41
votes
7answers
9k views
The history of the NULL pointer
As we know, in C to dereference a null pointer is undefined behaviour. From what I understand, the PDP-7 and the PDP-11 both have ordinary memory that can be written to and read from at address 0.
On ...
64
votes
5answers
14k views
Why did C use the -> operator instead of reusing the . operator?
In the C programming language, the syntax to access the member of a structure is
structure.member
However, a member of a structure referenced by a pointer is written as
pointer->member
...
14
votes
3answers
5k views
Native C compiler for Sinclair ZX Spectrum
I am looking for a native C compiler for the Spectrum 128. I would like one which:
Has good support for the latest C standard at the time.
Is not limited to compiling ridiculously short source code.
...