[Info-vax] Whither VMS?
glen herrmannsfeldt
gah at ugcs.caltech.edu
Wed Oct 7 09:10:01 EDT 2009
Bob Eager <rde42 at spamcop.net> wrote:
< On Wed, 07 Oct 2009 07:12:35 +0000, glen herrmannsfeldt wrote:
<> Bob Eager <rde42 at spamcop.net> wrote:
<>> On Wed, 07 Oct 2009 00:43:44 +0000, glen herrmannsfeldt wrote:
<> (snip regarding C str... functions)
<>>> Many compilers now generate those functions inline, without calling an
<>>> actual function. That would only be true for the ones actually
<>>> implemented, such as strcat and memcpy, but they reserved them all to
<>>> allow for future additions.
<>> I'd be interested to know which compilers. Can you cite some examples,
<>> please?
<> In just one test on one version of gcc, it seems to inline strcpy with
<> -O1 or higher, but not for -O0, the default.
< But not if you use -fno-builtin ...
Sure. But since the standard reserves str... names your program
is already non-standard. It may still do what you want, with
or without such compiler options.
Many programs assume twos complement arithmetic, but the C
standard does not. Many programs assume short is 16 bits,
but the standard does not. If you know which features are part
of the standard then you can decide to follow the standard
and use only standard features, or not. Your choice.
-- glen
More information about the Info-vax
mailing list