comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: gnatmake myProg.adb -largs -Wl,-stack_size -Wl,0x4000000
Date: Thu, 09 Mar 2006 20:24:26 +0000
Date: 2006-03-09T20:24:26+00:00	[thread overview]
Message-ID: <m27j7374ed.fsf@grendel.local> (raw)
In-Reply-To: 1141907480.223301.141500@j33g2000cwa.googlegroups.com

"stuart clark" <stuartlclark@hotmail.com> writes:

> Thanks i had thought of the BRUTE froce approach.
>
> i am still having trouble finding anythnig on this gnatmake -stack_size
> option. this command i found on the Mac OS/X forum is the only place i
> have seen it.
>
> Have you seen it before??? -largs is linker arguments, i am trying to
> find -Wl, -stack_size...

-Wl,xxx is an instruction to gcc to pass xxx to the underlying linker
(ld). So gcc sees
   -Wl,-stack_size -Wl,0x4000000
and ld sees
   -stacksize 0x4000000

This is very likely MocOS-specific; here, 'man ld' says

      -stack_size value
              Specifies  the size of the stack segment value, where value is a
              hexadecimal  number  rounded  to  the  segment  alignment.   The
              default  segment  alignment  is  the target pagesize (currently,
              1000 hexadecimal for the PowerPC and for i386).  If  -stack_addr
              is  specified  and -stack_size is not, a default stack size spe-
              cific for the architecture being linked will  be  used  and  its
              value  printed  as  a  warning  message.  This creates a segment
              named __UNIXSTACK .

.....



  parent reply	other threads:[~2006-03-09 20:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-09 11:17 gnatmake myProg.adb -largs -Wl,-stack_size -Wl,0x4000000 stuart clark
2006-03-09 12:25 ` Alex R. Mosteo
2006-03-09 12:31   ` stuart clark
2006-03-09 13:33     ` Alex R. Mosteo
2006-03-09 15:11       ` stuart clark
2006-03-09 20:24     ` Simon Wright [this message]
2006-03-09 22:37       ` stuart clark
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox