[Info-vax] The (now lost) future of Alpha.
Craig A. Berry
craigberry at nospam.mac.com
Sun Aug 5 14:16:12 EDT 2018
On 8/5/18 11:16 AM, Chris wrote:
> On 08/05/18 14:38, Craig A. Berry wrote:
>
>>
>> Things such as file I/O that are not in libc on most systems. However,
>> those systems tend to have C-friendly syscalls, so you still wouldn't
>> need assembler.
>
> Such functions are in the standard C library: fopen, fwrite, fread,
> fclose, for example. Core functionality in all C libraries that I
> have seen.
But fopen, fwrite, fread, and fclose implemented in terms of open,
write, read, and close, which are syscalls, not C library functions. I'm
not sure whether a compiler would be more likely to use stdio or unix
I/O, but just wanted to point out that it might well use things that are
not in the C library. It doesn't matter as long as they are available,
but it might play a role in what has to get done first when implementing
a new compiler on a new OS port.
> Those functions and more are all needed for a compiler get it's
> work done. Otherwise, how do you read the source files and save the
> results ?...
>
> Chris
More information about the Info-vax
mailing list