SE250:lab-9:jhor053

From Marks Wiki
Revision as of 05:20, 3 November 2008 by Mark (Sọ̀rọ̀ | contribs) (7 revision(s))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Lab9

My option is lucky number 3. Too late to pull out? :P

Understanding

My hardest bit is figuring out what is being passed to option 3 (and asking people who are doing option 2 dont quite have an idea) and what I am passing out.

I have spent 2 hours trying to understand this and will get there sometime.

Task1

.long	_TOK_MUL
	.long	4
	.long	0
	.long	_TOK_DIV
	.long	4
	.long	0

Here is parsetree.c converted to an assembly file via gcc -S parsetree.c. Is this by what is for

1. Collect all identifiers that appear within the program, and for each
one emit code of the form
.globl _ident
_ident:
.long 0


Task2

Task3

Task4

Conclusion

Doing option 3 is rather confusion and perhaps a bit more explicitness would help.

That said If i could get it going well it would be awesome as it supplements this course as well as another course compsys201 where we are learning assembly.