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 > Assembly Language > Re: Calling lib...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 4970 of 5113
Post > Topic >>

Re: Calling libraries from assembler.

by David Thompson <spamtrap@[EMAIL PROTECTED] > May 5, 2008 at 04:10 AM

On Tue, 22 Apr 2008 15:18:31 -0700 (PDT), Terence
<spamtrap@[EMAIL PROTECTED]
> wrote:

> On Apr 22, 5:42 pm, Josef Moellers  <spamt...@[EMAIL PROTECTED]
> wrote:
> 
> >.... But I recall that for one, Fortran doesn't sup****t
> > recursion, and, as Robert pointed out, not all early machines had a
> > proper stack, parameters might be passed in a fixed location.
> >
> > The best thing to do would be to compile a Fortran program and look at
> > the object code.
> >

For the particular compiler(s?), and possibly options, of interest.

> 
> Oh NO!, Fortran DOES sup****t recursion!

Since 1990, but it's still not the default. Compilers legally _can_
still use single-copy (static) storage for routines not attributed
RECURSIVE. But since most CPUs nowadays sup****t stack access at least
as efficient as static, there's rarely any longer a benefit to it. 

Also variables declared with initialization are implicitly attributed
(also) SAVE, meaning single-copy even in a RECURSIVE routine. To have
'local' (per invocation) variables, you must use assignment instead.
This is a FAQ on c.l.fortran.

- formerly david.thompson1 || achar(64) || worldnet.att.net
 




 2 Posts in Topic:
Re: Calling libraries from assembler.
Terence <spamtrap@[EM  2008-04-22 15:18:31 
Re: Calling libraries from assembler.
David Thompson <spamt  2008-05-05 04:10:33 

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 Sep 6 22:35:00 CDT 2008.