Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tiger
nolimips
Commits
3a281115
Commit
3a281115
authored
Jul 04, 2003
by
Benoit Perrot
Browse files
Manage main label not found
parent
b24822d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
3a281115
2003-06-29 Benot Perrot <benoit@lrde.epita.fr>
* src/vm/virtual_machine.hh: Display a dedicated error message
when the main label can not be found.
2003-06-29 Benot Perrot <benoit@lrde.epita.fr>
* dev/mipsy.xml, dev/mipsy.py:
...
...
src/vm/virtual_machine.hh
View file @
3a281115
...
...
@@ -53,8 +53,13 @@ namespace vm
precondition
(
_program
);
const
inst
::
TextSection
&
text_section
=
(
*
_program
).
text_section
();
if
(
!
text_section
.
has_label
(
inst
::
Label
(
"main"
)))
{
std
::
cerr
<<
"No `main' label in assembly file."
<<
std
::
endl
;
return
;
}
cpu
.
set_pc
(
text_section
.
get_offset
(
inst
::
Label
(
"main"
)));
_halt
=
false
;
while
(
!
_halt
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment