From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <1341360045.898340.1412695492957.JavaMail.ngmail@webmail12.arcor-online.net> <1959055281.1911186.1412697516384.JavaMail.ngmail@webmail14.arcor-online.net> Date: Wed, 8 Oct 2014 14:35:21 +0100 Message-ID: From: Charles Forsyth To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=f46d04447fe52e0cb20504e96368 Subject: Re: [9fans] C question on struct Biobuf in bio.h Topicbox-Message-UUID: 192d6478-ead9-11e9-9d60-3106f5b1d025 --f46d04447fe52e0cb20504e96368 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 7 October 2014 18:27, =C3=81lvaro Jurado wrote: > > , and ld could not assign right the values if declarations are not > specified ansi style (variable initialization it's made by ld, not by the > compiler): you will get some dragons in some cases. Initialisations of externals is done by the compiler, which lays things out as .long etc. ld doesn't do anything special; it doesn't even know about them. --f46d04447fe52e0cb20504e96368 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On 7 October 2014 18:27, =C3=81lvaro Jurado <elbingmiss@gmail.com= > wrote:

, and ld could not assign right the values if dec= larations are not specified ansi style (variable initialization it's ma= de by ld, not by the compiler): you will get some dragons in some cases.

Initialisations of externals is done by the c= ompiler, which lays things out as .long etc. ld doesn't do anything spe= cial; it doesn't even know about them.


--f46d04447fe52e0cb20504e96368--