From mboxrd@z Thu Jan 1 00:00:00 1970 From: richard@inf.ed.ac.uk (Richard Tobin) Date: Tue, 27 Jun 2017 14:54:06 +0100 (BST) Subject: [TUHS] What did cc -2 do? In-Reply-To: Random832's message of Sat, 24 Jun 2017 20:50:51 -0400 Message-ID: <20170627135406.21EAD137A42A@macaroni.inf.ed.ac.uk> > Browsing the source for "cc" in v6 and v7, if invoked with -2 would > replace crt0.o with crt2.o. If the -2 were followed by another character > (probably intended to be -20), it would use crt20.o and use -l2 instead > of -lc. > > These options seem to be undocumented, and I can't find any source code > of these libraries or indication as to what the purpose was. The "scc" man page for System V may be enlightening, as it mentions similarly-named files: NAME scc - C compiler for stand-alone programs SYNOPSIS scc [ +[ lib ] ] [ option ] ... [ file ] ... DESCRIPTION Scc prepares the named files for stand-alone execution. [...] FILES /lib/crt2.o execution start-off /usr/lib/lib2.a stand-alone library /usr/lib/lib2A.a +A configuration library /usr/lib/lib2B.a +B configuration library -- Richard -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.