Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!nikhefh!n62 From: n62@nikhefh.nikhef.nl (Klamer Schutte) Newsgroups: comp.sys.atari.st Subject: Re: Commandline length? Message-ID: <711@nikhefh.nikhef.nl> Date: 4 Jan 90 14:08:30 GMT References: <510@tnosoes.UUCP> <1176@pcsbst.UUCP> Reply-To: n62@nikhefh.nikhef.nl (Klamer Schutte) Organization: Nikhef-H, Amsterdam (the Netherlands). Lines: 48 (Please note: i missed the original article -- please don't flame if i miss the point which the original author meant!) In article <1176@pcsbst.UUCP> roland@cochise writes: >joep@tnosoes.UUCP (Joep Mathijssen) writes: > >>Using Gulam and make, I want to link a program using TURBO-C. >>But there are so much .O-files that must be linked, that my list of >>files is not processed correctly. I think the commandline is limited to >>only 80 characters. It this a ST- or Gulam-limit? > >Don't know about possible Gulam limits, but there IS a TOS-limit of >about 125 characters. There is an official work-around, but I wouldn't >expect any program to support it (yet). > the MWC compiler did work around this TOS 'bug'. This worked in with the GP-Shell (part of the CRAFT package) and probably also with MSH and gulam. The TurboC linker doesn't like these long command lines. Neither can it be told how it understands these :-(. What can be done is to give the TurboC linker a file describing what to link. I have written a shell script (actually, a function, but these are not available under gulam) which does translate a line like link -o my_prog.ttp main.o aap.o noot.o mies.o -l tos -l flt -l wim to a file like: a:\lib\startup.o -O=my_prog.ttp main.o aap.o noot.o mies.o a:\lib\tctoslib.lib a:\lib\tcfltlib.lib a:\lib\tcwimlib.lib a:\lib\tcstdlib.lib where aap, noot, mies, wim are dutch equivalents for foo, bar etc. Not having this script on-line i can't help directly; but everybody should be able to construct such a shell script. (Or write a C program; but make this C program accept a long commandline! (by using sobozon or MWC C.)) Klamer. -- ________________________________________________________________________________ ( Currently unemployed ) Klamer Schutte mcvax!nikhefh!{n62,Schutte} {Schutte,n62}@nikhef.nl