From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ovidiu Predescu To: Nick Clifton Cc: pb@nexus.co.uk, egcs@egcs.cygnus.com Subject: Re: Objective C and STRUCTURE_SIZE_BOUNDARY Date: Fri, 28 May 1999 09:11:00 -0000 Message-id: <199905281611.JAA12862@hpcll563.cup.hp.com> References: <199905281530.IAA08113@elmo.cygnus.com> X-SW-Source: 1999-05/msg00810.html Hi Nick, Hm, so basically the structure boundary is passed as a compile time option. Does this mean that on ARM all the files linked in a program should be compiled with the same structure boundary size? How this works? Is there a way to find out at runtime what was the option passed to the compiler at the build time? Greetings, Ovidiu On Fri, 28 May 1999 08:30:07 -0700, Nick Clifton wrote: > Hi Ovidiu, > > : How is the value for arm_structure_size_bound computed? Could you point me to > : the code please? > > In the file gcc/config/arm/arm.c there is a function called > arm_override_options and in this function there is this piece of > code: > > if (structure_size_string != NULL) > { > int size = strtol (structure_size_string, NULL, 0); > > if (size == 8 || size == 32) > arm_structure_size_boundary = size; > else > warning ("Structure size boundary can only be set to 8 or 32"); > } > > > Cheers > Nick > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ovidiu Predescu To: Nick Clifton Cc: pb@nexus.co.uk, egcs@egcs.cygnus.com Subject: Re: Objective C and STRUCTURE_SIZE_BOUNDARY Date: Mon, 31 May 1999 21:36:00 -0000 Message-ID: <199905281611.JAA12862@hpcll563.cup.hp.com> References: <199905281530.IAA08113@elmo.cygnus.com> X-SW-Source: 1999-05n/msg00811.html Message-ID: <19990531213600.JD_g25ZmspWbAxIHHiBDMev-BUNcIun6MFNFBsHIhlg@z> Hi Nick, Hm, so basically the structure boundary is passed as a compile time option. Does this mean that on ARM all the files linked in a program should be compiled with the same structure boundary size? How this works? Is there a way to find out at runtime what was the option passed to the compiler at the build time? Greetings, Ovidiu On Fri, 28 May 1999 08:30:07 -0700, Nick Clifton wrote: > Hi Ovidiu, > > : How is the value for arm_structure_size_bound computed? Could you point me to > : the code please? > > In the file gcc/config/arm/arm.c there is a function called > arm_override_options and in this function there is this piece of > code: > > if (structure_size_string != NULL) > { > int size = strtol (structure_size_string, NULL, 0); > > if (size == 8 || size == 32) > arm_structure_size_boundary = size; > else > warning ("Structure size boundary can only be set to 8 or 32"); > } > > > Cheers > Nick >