./xsm instruction not found in architecture

54 views
Skip to first unread message

goutham p

unread,
Oct 18, 2020, 1:21:39 AM10/18/20
to XOS Users

Sir,
       I am currently in stage 19 and had implemented the demand paging. After that today when i tried to do the assignment of stage 19, all of a sudden i am unable to run ./xsm --timer command in xsm folder of myexpos.I am getting an error statement saying that the instruction is not available in this architecture after which the machine halts.

I am attaching the screenshot of my terminal.
xsm command issue.png

goutham p

unread,
Oct 18, 2020, 1:52:08 AM10/18/20
to XOS Users
Sir,
     I got the mistake, i had by mistake loaded a module in spl format using the xfs interface. When i loaded it back using .xsm format, the error was gone.

Murali Krishnan

unread,
Oct 18, 2020, 3:59:06 AM10/18/20
to xos-...@googlegroups.com
More abstractly, the machine executes only low level code,  obtained after converting high level code to low level code using a software called a compiler.

Adding a few points here:

The XSM simulator permits you to run assembly level code; but real machines require the code to be further low level -  binary executable file.    XSM allows assembly level programs because it is a simulator (implemented in C). 
This decision to design such a simulator was made because debugging binary programs in binary would be harder when you do the lab. 

XSM deviates from real machines in other real aspects as well.  No real machine allows you to store a string in a single memory word.  Real machines require you allocate a sequence of words to store a string. 
This feature also makes your coding and debugging easier.  (Programming would be hard if you were forced to read the name of each program letter by letter, create a string in memory to store the name and so on.
Moreover, such stuff are just programming work that won't contribute much to your OS understanding.) 

However, it is important to understand what is done and what is not done. 


--
You received this message because you are subscribed to the Google Groups "XOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xos-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/xos-users/5a3bf0f0-c5da-4583-8395-029bfe693863n%40googlegroups.com.

goutham p

unread,
Oct 18, 2020, 5:46:07 AM10/18/20
to xos-...@googlegroups.com
okay sir, i got it. I will keep in mind these differences.

Reply all
Reply to author
Forward
0 new messages