The long version:
I'm experimenting with an old (8-bit, pre-ANSI) C implementation, and I've run out of memory.

A solution given in the manual: "don't despair; split the big source file into two or more smaller source files and compile them separately. They will join up again when you link them." Of course, if I compile each piece separately, the compiler complains about "undeclared identifiers" etc.

Header files seem like a possible solution... but what I've tried doesn't work, and the material I've read seems much more complex than what I'm trying to do.


TLDR: I want to create header files for a long program which has been split into small units. Existing documentation is confusing.

I'd really appreciate any guidance in how to fashion a header file for this situation.

Thanks, Michael