Compiling SML on Windows: A Guide

  • Thread starter Dragonfall
  • Start date
  • Tags
    Windows
In summary, SML code cannot be compiled on Windows in the same way as other operating systems because Windows does not come with a built-in SML compiler. The most commonly used compiler for SML on Windows is "MLton", which is easy to install and use. In addition to the compiler, a text editor and command line interface are needed. There are specific steps to follow, including downloading and installing the compiler, setting up environment variables, and using the command line to compile and run code. SML code written on another operating system can be compiled on Windows as long as the same version of the compiler is installed. However, it is recommended to test the code on the specific operating system to ensure compatibility.
  • #1
Dragonfall
1,030
4
What compiles SML on windows?
 
Technology news on Phys.org
  • #2
Usually, an ML run-time interpreter also has a compilation part.

Two common implementations are www.dina.kvl.dk/~sestoft/mosml.html[/URL].
 
Last edited by a moderator:
  • #3


Compiling SML on Windows can be done using a variety of tools and methods. One popular option is to use the Standard ML of New Jersey (SML/NJ) compiler, which is available for Windows operating systems. Other options include the MLton compiler and the Poly/ML compiler. Additionally, there are IDEs such as Visual Studio and Notepad++ that support SML compilation on Windows. Ultimately, the choice of compiler and tools will depend on the specific needs and preferences of the user.
 

1. Why is compiling SML on Windows different from other operating systems?

Compiling SML on Windows is different because Windows does not come with a built-in SML compiler like many other operating systems do. This means you will need to install a separate compiler and follow different steps to compile your code.

2. What compiler should I use for SML on Windows?

The most commonly used compiler for SML on Windows is called "MLton". It is a fast and efficient compiler that is easy to install and use.

3. Do I need any other software or tools to compile SML on Windows?

Yes, in addition to the compiler, you will also need a text editor to write your SML code and a command line interface to run the compiler. Some popular options for text editors include Notepad++ and Visual Studio Code, and the command line interface can be accessed through the Windows Command Prompt.

4. Are there any specific steps I need to follow to compile SML on Windows?

Yes, there are a few specific steps you will need to follow. These include downloading and installing the compiler, setting up your environment variables, creating a directory for your SML files, and using the command line to compile and run your code. A detailed guide can be found in the "Compiling SML on Windows: A Guide" document.

5. Can I compile SML code written on another operating system on Windows?

Yes, you can. As long as you have the same version of the SML compiler installed, your code should compile and run on Windows without any issues. However, it is always a good idea to test your code on the specific operating system you plan to use it on to ensure compatibility.

Similar threads

  • Programming and Computer Science
Replies
1
Views
469
  • Programming and Computer Science
Replies
11
Views
1K
  • Programming and Computer Science
Replies
14
Views
2K
  • Programming and Computer Science
Replies
4
Views
381
  • Programming and Computer Science
Replies
13
Views
2K
Replies
6
Views
1K
  • Programming and Computer Science
Replies
1
Views
1K
  • Programming and Computer Science
Replies
12
Views
2K
  • Programming and Computer Science
Replies
29
Views
2K
  • Programming and Computer Science
Replies
1
Views
2K
Back
Top