On Sat, Jan 25, 2025 at 07:51:44PM -0600, Jacob Bachmeyer wrote: > This also looks like you might actually know what testglue.c actually does > and how it is used. Could you enlighten me on that or at least point me to > an example of something that uses it? I am currently reluctant to touch it > because I do not know what changing it might break.
As the author of testglue.c, it was designed for ROM debug monitors for testing libgloss and newlib on bare metal hardware. The debug monitors weren't real operating systems, just something to download S records or other formats to load the program and execute it. Exit had to exist so code would link, and also to drop you back to the debug monitor prompt. I think the C language has evolved since the early 90s when I wrote that file. :-) - rob -