0

not sure where to post this but the problem is that i cant seem to compiler a program in unix.

i am using unix:
SunOS unix2.its.albany.edu 5-10 Generic_142900-06 sun4u sparc SUNW, sun-Fire-V440

1-create file

emacs hello.cl(l = lower case L)

2.write program in "COOL"

    class Main
    {
        i : IO <- new IO;
        main:IO()
        {
            i.out_string("Helloe world\n");
        };
    };

3-complier program

coolc hello.cl                 (dont work)

4-run program

spim hello.s
2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by hwoarang69
-1

You don't provide any error messages, diagnostics, etc. Just "don't work", which does not work for me! Want help, then provide as much useful information as you can. Emacs has a built-in compiler. If you are building this to run in emacs, then use that. The command is byte-compile-file filename

0

when i enter coolc hello.cl
it say command not found

Edited by hwoarang69

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.