🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

3 total messages Started by James McParland Wed, 13 Mar 1985 15:26
help needed with Softworks C Compiler
#809
Author: James McParland
Date: Wed, 13 Mar 1985 15:26
40 lines
2148 bytes
I am posting this for a friend; please send all responses via
electronic mail, not the net.

	I have a 128K Mac with one disk drive. I bought the Softworks
	C compiler.  I have been having problems with setting up a
	programming environment, and to this date I have been unable
	to complete the compilation of any program.

	I have a C BOOT DISK which contains the editor, the C
	COMPILER, and my source file (let's call it hello.c).  When
	I run the C COMPILER, it does create a hello.asm file.

	I have a C WORK DISK which contains the ASSEMBLER and
	LINKER.  When I run the ASSEMBLER it does create a 
	hello.REL file.  I then create (with the editor) a hello.link
	file which specifies that I want to link the relocatable modules
	for hello and cclib.

	I have been unable to LINK the modules that I have created.	
	The LINKER always fails to find either hello.REL, cclib.REL,
	or the hello.link file.

	Where should I place these files?  Should they be on the 
	C BOOT DISK or the C WORK DISK?  Or both?  Is there any way 
	I can organize the utilities on the disks to reduce the amount
	of disk swapping I have to do?  Is there any way to set up
	a command file which would take a program through the compiler,
	assembler, and linker automatically?  Is there any way to create
	a .link file automatically?

	I would appreciate any help you can offer me...  the
	people at Softworks have been totally useless.  

				Phil Ruben

posted by:

	Jim (Mac) McParland /  Cap Gemini DASD
	on assignment to: AT&T Information Systems
	South Plainfield, New Jersey
Re: help needed with Softworks C Compile
#831
Author: tran
Date: Thu, 14 Mar 1985 23:34
42 lines
2252 bytes


I use this procedure, and it works most of the time :

 1) first, I compiled the source file on the BOOT DISK.  The output is
    hello.asm.
 2) Hello.asm now must be moved to C WORK DISK for assembling.  If you didn't
   do this, you would get the message 'can't remount volume'.
 3) WORK DISK must contain the folder ASM stuff for the assembler to work.
 4) When you run the ASSEMBLER, the output file is hello.rel.
 5) I create a hello.link which looks like the following :

      !Start
       
      hello
      cclib

      $

 6) Now this link file must also be moved to WORK DISK; otherwise it won't work.
 7) Now, I am ready to link.  This is where complication begins. 
    First, you must have a folder containing library REL files such as
    cclib.REL, cv7lib.REL etc., on the WORK DISK.  Then when I LINK the file
    SOMETIMES it works; if it doesn't work the first time, try again.
    If it still does not work, then you need some statement at the top of
    your program like :

         #include <stdio.h>

    depending on which libraries you want to use.  If this is the case, then
    the files HEADERs must also be moved to WORK DISK.

    I spent two nights to compile a small example program DEGREE.C on the disk.
    and came up with this procedure by trial and error.  Obviously this is
    not my idea of user-friendly.  
    Let me know if this works.  Also please post further techniques you might
    receive on the net.  I am also exasperated by the excessive disk swapping
    for such a small program like hello.c ( I own a 128 Mac )
    Thanks.

    I tried mailing this but couldn't.
Re: help needed with Softworks C Compile
#873
Author: tran
Date: Fri, 15 Mar 1985 23:52
2 lines
677 bytes
Pardon me for screwing up the net.  I really don't know how to clean up this.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads