* VAXC --> DECC
@ 1994-10-20 14:32 Jon Kreisler
1994-10-20 21:59 ` Bob Koehler
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Jon Kreisler @ 1994-10-20 14:32 UTC (permalink / raw)
I am about to take the plunge, converting from VAX C v3.2 to DEC C v4.0 on a
VAX OpenVMS v5.5-2 system. I am aware of the problem of being unable to take
an image created by DEC C and running it on a system only running the older
libraries.
I would like to know if anyone has had unpleasant experiences doing this
conversion or if there are any other potential "headaches" to be wary of.
TIA
Jon
=====================================================================
Jon Kreisler Email: jon@gdstech.grumman.com
Grumman Data Systems & Services Phone: 1-516-575-6655
1111 Stewart Ave. M/S B27-111 Fax: 1-516 575-5020
Bethpage, New York 11714-3584 USA
=====================================================================
"There ain't no rules around here, we're trying to accomplish something."
- Thomas Edison
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: VAXC --> DECC
1994-10-20 14:32 VAXC --> DECC Jon Kreisler
@ 1994-10-20 21:59 ` Bob Koehler
1994-10-21 15:36 ` Jim Reuter
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Bob Koehler @ 1994-10-20 21:59 UTC (permalink / raw)
In article <1994Oct20.143252.20478@gdstech.grumman.com>, jon@gdstech.grumman.com (Jon Kreisler) writes...
>I am about to take the plunge, converting from VAX C v3.2 to DEC C v4.0 on a
>VAX OpenVMS v5.5-2 system. I am aware of the problem of being unable to take
>an image created by DEC C and running it on a system only running the older
>libraries.
>I would like to know if anyone has had unpleasant experiences doing this
>conversion or if there are any other potential "headaches" to be wary of.
>
If you use vfork, make sure you include processes.h. We were ignoring all
the function declaration assumptions, and that one got us. vfork is not
a function in DEC C, its a macro.
------------------------------------------------------------------------------
Bob Koehler |
koehler@bessta.gsfc.nasa.gov | rkoehler@author.gsfc.nasa.gov
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: VAXC --> DECC
1994-10-20 14:32 VAXC --> DECC Jon Kreisler
1994-10-20 21:59 ` Bob Koehler
@ 1994-10-21 15:36 ` Jim Reuter
1994-10-22 19:13 ` Ken Williams
1994-10-25 12:44 ` Vociferous Mole
3 siblings, 0 replies; 7+ messages in thread
From: Jim Reuter @ 1994-10-21 15:36 UTC (permalink / raw)
Jon Kreisler (jon@gdstech.grumman.com) wrote:
: I am about to take the plunge, converting from VAX C v3.2 to DEC C v4.0 on a
: VAX OpenVMS v5.5-2 system. I am aware of the problem of being unable to take
: an image created by DEC C and running it on a system only running the older
: libraries.
: I would like to know if anyone has had unpleasant experiences doing this
: conversion or if there are any other potential "headaches" to be wary of.
I have done this as part of porting stuff to Alpha AXP systems. For the
most part, things go pretty nicely. Here is what I had to watch for:
1) start with /STANDARD=VAXC on DEC C. DEC C type checking is much better
and stricter than VAX C, so it will yell if you were sloppy and VAX C
let you get away with it. Get your code ported, then change /STANDARD=
to tighten things up.
2) If you have any non-portable code protected by things like #ifdef VAX,
#ifdef VAXC, #ifdef VMS, etc., make sure you adjust these to do the
right things in the environment in which you are running DEC C.
Otherwise, all the changes were goodness.
Jim Reuter
reuter@cookie.enet.dec.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: VAXC --> DECC
1994-10-20 14:32 VAXC --> DECC Jon Kreisler
1994-10-20 21:59 ` Bob Koehler
1994-10-21 15:36 ` Jim Reuter
@ 1994-10-22 19:13 ` Ken Williams
1994-10-25 12:44 ` Vociferous Mole
3 siblings, 0 replies; 7+ messages in thread
From: Ken Williams @ 1994-10-22 19:13 UTC (permalink / raw)
jon@gdstech.grumman.com (Jon Kreisler) writes:
>I am about to take the plunge, converting from VAX C v3.2 to DEC C v4.0 on a
>VAX OpenVMS v5.5-2 system. I am aware of the problem of being unable to take
>an image created by DEC C and running it on a system only running the older
>libraries.
>I would like to know if anyone has had unpleasant experiences doing this
>conversion or if there are any other potential "headaches" to be wary of.
One thing that no one has mentioned that I've run into is the difference
in the external model. DEC C by default assumes that all external
variables are globals VAX C assumes that they are in common blocks. What
happens is that any variables not in functions show up during the link
step as undefined globals. To fix this in individual instances use a
#pragma compiler directive. I'm at home so I don't have the exact syntax
but, I think the syntax should be:
#pragma external_model common block
variable declarations
.
.
.
#pragma external_model relaxed refdef
There may also be a switch on the compiler to do something like this as
well but, I don't know what it is.
Ken Williams
barnowl@blkbox.com
PGP Key Available On Request
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: VAXC --> DECC
1994-10-20 14:32 VAXC --> DECC Jon Kreisler
` (2 preceding siblings ...)
1994-10-22 19:13 ` Ken Williams
@ 1994-10-25 12:44 ` Vociferous Mole
1994-10-27 18:57 ` Paul Repacholi
3 siblings, 1 reply; 7+ messages in thread
From: Vociferous Mole @ 1994-10-25 12:44 UTC (permalink / raw)
In article <1994Oct20.143252.20478@gdstech.grumman.com>,
Jon Kreisler <jon@gdstech.grumman.com> wrote:
>I am about to take the plunge, converting from VAX C v3.2 to DEC C v4.0 on a
>VAX OpenVMS v5.5-2 system. I am aware of the problem of being unable to take
>an image created by DEC C and running it on a system only running the older
>libraries.
Not only will images not transfer, 'main()' modules compiled by DEC C 4.0
will not link on systems without the new libraries. Several people
in this group suggested work arounds for this (thanks!), but all
of them involve hacking the code in non-standard ways, or adding
assembler, or both.
What this means is you can't easily get around the problem of not
being able to distribute images to older systems by distributing
object and linking on the destination machine.
--
SteveG | stevegr@neosoft.com | '91 SHO, Mocha/Mocha | h.p peon
So it goes.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: VAXC --> DECC
1994-10-25 12:44 ` Vociferous Mole
@ 1994-10-27 18:57 ` Paul Repacholi
1994-10-27 22:16 ` Steve Lionel
0 siblings, 1 reply; 7+ messages in thread
From: Paul Repacholi @ 1994-10-27 18:57 UTC (permalink / raw)
In article <38iuim$22b@Starbase.NeoSoft.COM> stevegr@Starbase.NeoSoft.COM (Vociferous Mole) writes:
> What this means is you can't easily get around the problem of not
> being able to distribute images to older systems by distributing
> object and linking on the destination machine.
Did not DEC state that this was allowed in this case, and also for
the new libs from the fortran 6.1 update??
--
~Paul
+61 (09) 257-1001
prep@yarrow.wt.uwa.edu.au ( preferred ) 1 Crescent Rd,
zrepachol@cc.curtin.edu.au Kalamunda,
West Aust 6076
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: VAXC --> DECC
1994-10-27 18:57 ` Paul Repacholi
@ 1994-10-27 22:16 ` Steve Lionel
0 siblings, 0 replies; 7+ messages in thread
From: Steve Lionel @ 1994-10-27 22:16 UTC (permalink / raw)
In article <PREP.94Oct28025749@yarrow.wt.uwa.edu.au>
, prep@yarrow.wt.uwa.edu.au (Paul Repacholi) writes:
>In article <38iuim$22b@Starbase.NeoSoft.COM> stevegr@Starbase.NeoSoft.COM
>(Vociferous Mole) writes:
>
>> What this means is you can't easily get around the problem of not
>> being able to distribute images to older systems by distributing
>> object and linking on the destination machine.
>
>Did not DEC state that this was allowed in this case, and also for
>the new libs from the fortran 6.1 update??
The Software Product Description for DEC C says that you are allowed to
freely distribute the C/C++ RTL kit. With Ken Cowan's help, I am
arranging to have this kit put up at ftp.digital.com so that anyone
can copy it (all you need is that the installing system be licensed for
VMS.) The Fortran SPD does say you can distribute the RTLs, though there
is not a separate kit to do it. I advise people who want just the Fortran
RTLs to get them by selecting only the RTL option from the compiler kit.
Steve Lionel Mail: lionel@quark.enet.dec.com
DEC Fortran Development WWW: http://www.digital.com/info/slionel.html
Digital Equipment Corporation
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698 "Free advice is worth every cent"
For a summary of Digital's Internet services, send mail to info@digital.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1994-10-27 22:16 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-10-20 14:32 VAXC --> DECC Jon Kreisler
1994-10-20 21:59 ` Bob Koehler
1994-10-21 15:36 ` Jim Reuter
1994-10-22 19:13 ` Ken Williams
1994-10-25 12:44 ` Vociferous Mole
1994-10-27 18:57 ` Paul Repacholi
1994-10-27 22:16 ` Steve Lionel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox