<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=SE250%3Alab-9%3Asbha077</id>
	<title>SE250:lab-9:sbha077 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=SE250%3Alab-9%3Asbha077"/>
	<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-9:sbha077&amp;action=history"/>
	<updated>2026-04-29T03:38:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.kram.nz/index.php?title=SE250:lab-9:sbha077&amp;diff=8717&amp;oldid=prev</id>
		<title>Mark: 4 revision(s)</title>
		<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-9:sbha077&amp;diff=8717&amp;oldid=prev"/>
		<updated>2008-11-03T05:20:39Z</updated>

		<summary type="html">&lt;p&gt;4 revision(s)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= &amp;#039;&amp;#039;&amp;#039;Lab 9 Report&amp;#039;&amp;#039;&amp;#039; =&lt;br /&gt;
&lt;br /&gt;
So far I can&amp;#039;t quite figure out how to get pretty much anything done. Conflicting ideas running through my head &amp;lt;-- don&amp;#039;t help&lt;br /&gt;
&lt;br /&gt;
update (after nearly 1.5 hours?) --&amp;gt; @.@ still lost&lt;br /&gt;
&lt;br /&gt;
Alright, an update several hours later:&lt;br /&gt;
&lt;br /&gt;
After quite a bit of asking around, I kind of discovered that we were getting a tree passed out from &amp;#039;&amp;#039;&amp;#039;OPTION II&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;TASK 1&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
 1. Collect all identifiers that appear within the program, and for each one emit code of the form&lt;br /&gt;
 &lt;br /&gt;
 .globl _ident&lt;br /&gt;
 _ident:&lt;br /&gt;
        .long 0&lt;br /&gt;
&lt;br /&gt;
I output the given parsetree.c as assembly (gcc -S parsetree.c)&lt;br /&gt;
&lt;br /&gt;
 .long	_TOK_MUL&lt;br /&gt;
 	.long	4&lt;br /&gt;
 	.long	0&lt;br /&gt;
 	.long	_TOK_DIV&lt;br /&gt;
 	.long	4&lt;br /&gt;
 	.long	0&lt;br /&gt;
&lt;br /&gt;
I can&amp;#039;t really figure out where to go from here to be honest but I&amp;#039;m guessing we need to do some fiddling around with the code. Not sure if that&amp;#039;s going to help but hey, that&amp;#039;s just what I think!&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;TASK 2&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;TASK 3&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;TASK 4&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Requests and Conclusion&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* A little commenting would help so that we know what&amp;#039;s going on...took me the entire lab time to figure out what was going (but I&amp;#039;m still quite lost)&lt;br /&gt;
* A more depth and clarity in the task  instructions would be really handy.&lt;br /&gt;
&lt;br /&gt;
I think I&amp;#039;ve completely failed this lab. I just hoped that given some assembly code in this option, I could maybe (just maybe) manage to learn and understand a bit of Compsys as we&amp;#039;re covering similar stuff in that course. However, &amp;#039;&amp;#039;&amp;#039;C&amp;#039;EST UNE CATASTROPHE!! :O&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;</summary>
		<author><name>Mark</name></author>
	</entry>
</feed>