It's UWAweek 47

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying the 6 articles in this topic
Showing 6 of 828 articles.
Currently 104 other people reading this forum.


 UWA week 36 (2nd semester, mid-semester break) ↓
SVG not supported

Login to reply

👍?
helpful
9:24pm Wed 4th Sep, ANONYMOUS

For compiling The program should validate the syntax Generate the code in a .c file Do you then run ./runml sample08.ml and then it should automatically delete the .c file and the compiled file as well?


SVG not supported

Login to reply

👍?
helpful
10:03pm Wed 4th Sep, Joshua N.

ANONYMOUS wrote:
> For compiling > > The program should validate the syntax > Generate the code in a .c file > > Do you then run ./runml sample08.ml and then it should automatically delete the .c file > and the compiled file as well?
Hi anon, I'm not 100% sure what you are asking but when you run your program like so:

After running the compiled file your program must delete any files it created, which would be the c source file and the compiled file it created. I hope that answers your question.


SVG not supported

Login to reply

👍?
helpful
10:04pm Wed 4th Sep, Joshua N.

The content in the code block is


SVG not supported

Login to reply

👍?
helpful
10:04pm Wed 4th Sep, Joshua N.

For some reason it isn't appearing. The code is: "./runml sample.ml"


SVG not supported

Login to reply

👍?
helpful
10:08pm Wed 4th Sep, Joshua N.

"Joshua Noble" [email protected] wrote:

ANONYMOUS wrote:

For compiling

The program should validate the syntax Generate the code in a .c file

Do you then run ./runml sample08.ml and then it should automatically delete the .c file and the compiled file as well?

Ok let me try writing this out again, since half of my response got deleted. When you run your program like so:

./runml sample.ml

runml (your project) will read the ml file given as the first parameter (in this case sample.ml), it will validate the ml syntax inside that file, generate the equivalent c code in a new source code file (.c), compile the source code and finally run it.

After running the compiled file your program must delete any files it created, which would be the c source file and the compiled file it created.


SVG not supported

Login to reply

👍?
helpful
11:24pm Wed 4th Sep, ANONYMOUS

Okay, thanks for clarifying!

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy