delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/07/09:26:41

From: combee AT cambridge DOT scr DOT slb DOT com (Leendert Combee)
Message-Id: <199704071317.OAA00843@tartan.scr.slb.com>
Subject: Re: clock() for G77
To: djgpp AT delorie DOT com
Date: Mon, 7 Apr 1997 14:17:51 +0100 (BST)
Mime-Version: 1.0

>  I had this problem too. The only thing that can help, write
> a C stub for those C-finctions which you'd like to use in FORTRAN code.
> Something like this:
> 
> #include <time.h>
> 
> int clock_()
> {
>  return (int) clock();
> }
> 


  Wouldn't it be wonderful if we could tell g77 (and f77 on unix etc)
  to allow for function modules *without* underscores at the end so
  that C-functions can be called directly. The underscore business must 
  be a relic from the past that, imho, we need to get rid of asap! I
  think that within the gcc/djgpp environment it shouldn't be too
  difficult...?
   Leendert

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019