Hi, Emilio!


>  How I can execute a file foo.oz from console (unix terminal) without run
> emacs?

As far as I know, there is no way, because foo.oz is not a compiled file (if it
were, it would have the extension .ozf or .exe). If you had foo.ozf, it would
be as simple as:

    ozengine foo.ozf

However, the sort of foo.oz you have, namely:

>  -------- begin simple.oz ---------
>  declare X Y Z
>  local
>     X :: 0#13
>     Y :: 1#4
>     Z :: 2#3
>     {FD.plus X Y Z}
>  in
>     {Browse [X Y Z]}
>  end

... will not compile, because it is not a functor. Its current structure is
specific to the interactive mode (in emacs). In specific, it has the command
"declare" and lacks some parts which are required by a minimum functor. In
short, you need to have a compiled oz _application_ to run with ozengine. See
http://www.mozart-oz.org/documentation/apptut/index.html .

Finally, though I guess this is not what you need, it is worth mentioning that
Mozart has its own debugger, that will work in whatever mode. See
http://www.mozart-oz.org/documentation/ozcar/index.html .

Cheers,

Jorge.

>  --------- end  simple.oz ----------
>
>  I want to run simple.oz for trace the execution in the emulator.exe with
>  gdb or ddd (data display debugger)
>
>  How I can debug or trace the execution of simple.oz inside the emulator.exe?
>
>  Thanks in advance.
>
>  Emilio Duarte Garcia.
>
>
_________________________________________________________________________________
> mozart-users mailing list
> [email protected]
> http://www.mozart-oz.org/mailman/listinfo/mozart-users
>




_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to