Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
gcc
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. ? ? 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. // ASSGN SYS002,X'342' // ASSGN SYS003,X'342' pointing to a work disk // ASSGN SYS001,X'342' // ASSGN SYS002,X'342' // ASSGN SYS003,X'342' // ASSGN SYS004,X'342' |
to navigate to use esc to dismiss