From: Alan Campin
The same thing in a C program needs 270 bytes.

What happens if you code the following in main()
static int x = 0;
I haven't tried it, but my guess would be that the the static storage used by the C program would also be around 4K. If I understand correctly, storage under IBM i is allocated in 4K minimum blocks using system APIs. Wouldn't that be what the compiler would do?


This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].