Marinier, M. Claude, G. wrote:
Would it be sufficient to put function genbet(x,y:shortreal):shortreal;C; in the calling program? Is it necessary to have the wrapper unit? If yes, why is a wrapper needed?
The advantage of a "wrapper" unit is, if you have (or plan to have) several programs using the library, you'll have only one place which depends on the C code (i.e., only one place to change if the C interface changes). (And it's better modularization, anyway.)
The run-time efficiency will be the same for a wrapper unit with external declarations (unlike wrapper routines which suffer from a small overhead -- it depends on the routines if the overhead is relevant or neglectible).
Frank
Hi,
After building the 20000705 release on Solaris 2.7 with gcc 2.95.2, I do a
gpc --version
and I get
2.95.2 19991024 (release)
However, I can find 20000705 with
strings /usr/local/bin/gpc | grep 2000
Marinier, M. Claude, G. wrote:
gpc --version and I get 2.95.2 19991024 (release)
Use `gpc -v':
esmeralda/home/peter> gpc -v Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.1/specs gpc version 20000704, based on 2.95.1 19990816 (release) You have new mail in /var/spool/mail/peter esmeralda/home/peter>
(If you do not get the "new mail" message, that's okay and it does not mean anything about your GPC installation. If, OTOH, I did not get the "new mail" message, I'd know that something really strange has probably happened.;-)
Peter