🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: wpi.ccc
Article #2

MIPS Chip

#2
From: John C Whitson KB2GNC
Date: Wed, 13 Dec 1989 23:56
31 lines
1662 bytes
	Help! Very quick easy question!!!

	I have a DEC DECStation 3100 running Ultrix, and
	If I do the following:

		cc -S file.c

	I get the associated .s file, the assembly level code.
	In there, there are a large amount of symbols, etc, of
	the format $n, where n is a number. $sp is also referred
	to in the spirit of a stack pointer.

	Could someone help me out by pointing out what the $ symbol
	does here, and how one would recognize a register from a
	local symbol, because the .s file contains both in the same
	context.

	Why on Earth, do you ask, am I looking at .s files? Because
	I am a teaching assistant for a class here at WPI in VAX
	Assembly language, and I wish to illustrate the difference
	between a CISC machine and a RISC machine. I figured, not
	knowing MIPS Assembler, that all I had to do was throw a small
	C file into the compiler, and I could guess at the output.
	Alas, I was wrong. But thanks for helping me out!!

-- 
---------------------------------------------------------------------------
John Whitson:	Internet: jwhitson@wpi.wpi.edu	Bitnet: jwhitson@wpi.bitnet
		UUCP: uunet!wpi.wpi.edu!jwhitson
----------  Anything with this tag on it is purely my own opinion ---------
Technical Details
Message-ID: <6269@wpi.wpi.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!usc!apple!netcom!stratus!cloud9!jjmhome!m2c!wpi!jwhitson

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!usc!apple!netcom!stratus!cloud9!jjmhome!m2c!wpi!jwhitson
From: jwhitson@wpi.wpi.edu (John C Whitson KB2GNC)
Newsgroups: wpi.ccc,comp.sys.dec,comp.unix.wizards
Subject: MIPS Chip
Keywords: UNIX too
Message-ID: <6269@wpi.wpi.edu>
Date: 13 Dec 89 23:56:04 GMT
Organization: Worcester Polytechnic Institute, Worcester, Mass.
Lines: 31