¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

gcc


 

Thought I would try and get gcc running via dos/vs.? Has anyone performed this
and if so what are the tips, etc to do so.

Thank You
Tom c


 

Got dos/vs gcc compiling and linking under dos/vs.? However, when I try and run a test
compile:

* $$ JOB JNM=GCC3,CLASS=0
* $$ LST LST=SYSLST,CLASS=A,RBM=999999
// JOB GCC3
// EXEC GCC,SIZE=AUTO
int main(void)
{
??? printf("hello, world %d\n", FILENAME_MAX);
??? return (0);
}
/*
/&
* $$ EOJ

it treats the "C" and jcl type commands.? Somehow I need to tell GCC to read
from the jobstream for the compiles.? In Gcc SYSIN is defined as SYSIPT.

I know very little about the internals of DOS/VS, so sorry for what may be
dumb questions.

Any suggestions?

Cheers
Tom c


 

I have no idea of the requirements of the C compiler but my best guess is that it needs some workfiles.
E.g. the assembler needs definitions like:
// ASSGN SYS001,X'342'
// ASSGN SYS002,X'342'
// ASSGN SYS003,X'342' pointing to a work disk
and Cobol need definitions like:
// ASSGN SYS001,X'342'
// ASSGN SYS002,X'342'
// ASSGN SYS003,X'342'
// ASSGN SYS004,X'342'
You will have to consult the proper documentation for C.

Best regards,

Steen Hansen


 

¿ªÔÆÌåÓý

Steen,

GCC does not use any work files.

?

Probably to ask on the Hercules-380 list, but normally GCC will read source and write assembler output on the standard units (I am not a DOS person).

You then assemble the output with Assembler XF and load in the normal way.

?

/g/hercules-380/messages

?

is where Paul that wrote it hangs out¡­

?

Dave

?

From: [email protected] <[email protected]> On Behalf Of Steen Hansen
Sent: 26 December 2021 07:36
To: [email protected]
Subject: Re: [H390-DOSVS] gcc

?

I have no idea of the requirements of the C compiler but my best guess is that it needs some workfiles.
E.g. the assembler needs definitions like:
// ASSGN SYS001,X'342'

// ASSGN SYS002,X'342'

// ASSGN SYS003,X'342' pointing to a work disk
and Cobol need definitions like:

// ASSGN SYS001,X'342'

// ASSGN SYS002,X'342'

// ASSGN SYS003,X'342'

// ASSGN SYS004,X'342'
You will have to consult the proper documentation for C.

Best regards,

Steen Hansen