develooper Front page | perl.perl5.porters | Postings from June 2010

Re: ANSI requirement

Thread Previous | Thread Next
Ævar Arnfjörð Bjarmason
June 11, 2010 10:01
Re: ANSI requirement
Message ID:
On Mon, May 31, 2010 at 12:01, H.Merijn Brand <> wrote:

> diff --git a/INSTALL b/INSTALL
> index b0c31eb..8f09a7e 100644
> --- a/INSTALL
> +++ b/INSTALL
> @@ -36,6 +36,11 @@ any prefix location by adding "-Dprefix='/some/dir'" to Configure's args.
>  To explicitly name the perl binary, use the command
>  "make install PERLNAME=myperl".
> +Building perl from source requires an ANSI compliant C-Compiler.
> +A minimum of C89 is required. Some features available in C99 will
> +be probed for and used when found. The perl build process does not
> +rely on anything more than C89.
> +

I vaguely recall someone mentioning that we rely on some features of C
that aren't strictly guaranteed by ANSI C, such as the the offset into
a struct being the sum of the sizeof() of the struct members that came
before in the struct.

Maybe I just dreamt that up and that's really guarenteed by ANSI, but
in case I'm not misremembering things like that should probably be
mentioned there as well.

Can anyone confirm or deny that?

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About