Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Ada > Re: Announcemen...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 9 Topic 5617 of 5831
Post > Topic >>

Re: Announcement: GNAT ****ted to LLVM

by baldrick <baldrick@[EMAIL PROTECTED] > Mar 27, 2008 at 01:27 AM

Hi Gene,

> I assume that due to the link-time optimization capability that
> inlining among packages will be handled naturally.

that's correct: you can compile each package to bitcode, then at
link-time they will all be mutually optimized, including inlining
into each other.  You can also compile the entire runtime to bitcode
and have that be mutually optimized with your code too.  I didn't
turn this on by default because currently link-time-optimization is
not transparent: you have to explicitly call some LLVM tools at link
time.  There's a plan to teach llvm-gcc to do this automagically when
you use it to do linking.

> GNAT-gcc can't do that, right?

It can to some extent: if you use -O2 -gnatn then it will peek inside
the bodies of packages you are using to try to inline functions.  That
functionality becomes a lot less useful now though.

> This alone ought to be a big deal as accessor/setter
> conventions are leading to programs filled with tiny procedures and
> functions.

Very true, and I guess that's why ACT implemented -gnatn.
 




 9 Posts in Topic:
Announcement: GNAT ported to LLVM
baldrick <baldrick@[EM  2008-03-23 15:05:59 
Re: Announcement: GNAT ported to LLVM
Samuel Tardieu <sam@[E  2008-03-24 10:25:16 
Re: Announcement: GNAT ported to LLVM
baldrick <baldrick@[EM  2008-03-24 11:09:26 
Re: Announcement: GNAT ported to LLVM
Gene <gene.ressler@[EM  2008-03-26 17:41:38 
Re: Announcement: GNAT ported to LLVM
baldrick <baldrick@[EM  2008-03-27 01:27:55 
Re: Announcement: GNAT ported to LLVM
"Alex R. Mosteo"  2008-03-27 13:43:42 
Re: Announcement: GNAT ported to LLVM
baldrick <baldrick@[EM  2008-03-27 08:22:46 
Re: Announcement: GNAT ported to LLVM
"Alex R. Mosteo"  2008-03-27 18:25:16 
Re: Announcement: GNAT ported to LLVM
baldrick <baldrick@[EM  2008-04-11 06:37:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 1:18:40 CDT 2008.