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

Re: ANSI requirement

Thread Previous | Thread Next
From:
Ævar Arnfjörð Bjarmason
Date:
June 11, 2010 10:01
Subject:
Re: ANSI requirement
Message ID:
AANLkTinILKalZMWx4p2sI6BCB27fIjSuy3r3xBs9eKMK@mail.gmail.com
On Mon, May 31, 2010 at 12:01, H.Merijn Brand <h.m.brand@xs4all.nl> 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About