guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guile API for foreign languages: proposing SCM scm_list_0(void)


From: Andy Wingo
Subject: Re: Guile API for foreign languages: proposing SCM scm_list_0(void)
Date: Thu, 31 Jan 2013 18:23:52 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

On Thu 31 Jan 2013 17:57, Alexei Matveev <address@hidden> writes:

>>    static const scm_t_bits my_false = 0x4;
>>    static const scm_t_bits my_true = 0x404;
>>    static const scm_t_bits my_nil = 0x104;
>>    static const scm_t_bits my_eof = 0xa04;
>>    static const scm_t_bits my_eol = 0x304;
>>    static const scm_t_bits my_unspecified = 0x804;
>
> I get slightly different values for 1.8 (32 bit x86)

Yes, it is possible to have different values for these.  They are part
of the ABI, not the API.  As such, the values of these constants are the
same throughout one stable release series.  So they have one set of
values for 1.8, another for 2.0, another for 2.2, etc.

In theory they are architecture-dependent but in practice they are the
same on all architectures, 32-bit or 64-bit, ARM or x86, etc.

> I used this slightly modified code to get those numbers:

Go ahead and generate Fortran code, I would say :)  No sense in
bothering to generate C.

Cheers,

Andy
-- 
http://wingolog.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]