Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| en:install [2026/04/03 14:45] – créée root | en:install [2026/04/03 14:49] (Version actuelle) – root | ||
|---|---|---|---|
| Ligne 7: | Ligne 7: | ||
| * WBIN => specifies the directory of all binaries that complement the language binaries: shared libraries ('' | * WBIN => specifies the directory of all binaries that complement the language binaries: shared libraries ('' | ||
| * WLIB => specifies the location of compiled W programs, standalone programs, and // | * WLIB => specifies the location of compiled W programs, standalone programs, and // | ||
| - | * WSRC => required for compilation, | + | * WSRC => required for compilation, |
| ==== Usage ==== | ==== Usage ==== | ||
| To run a W program, both the main program and the // | To run a W program, both the main program and the // | ||
| - | - Compilation: | + | - Compilation: |
| - Assembly: The W assembler in text format is compiled into binary: this is the format recognized by the W runtime. | - Assembly: The W assembler in text format is compiled into binary: this is the format recognized by the W runtime. | ||
| - Execution: The W binary is interpreted by the W runtime. A //library// can only be called with the W binary version of the library being called. | - Execution: The W binary is interpreted by the W runtime. A //library// can only be called with the W binary version of the library being called. | ||
| Ligne 38: | Ligne 38: | ||
| > | > | ||
| </ | </ | ||
| - | The assembler " | + | The assembler " |
| - | The "-c" | + | The '' |
| The assembler also allows disassembling a W binary by producing the assembler source code in text format : add the option '' | The assembler also allows disassembling a W binary by producing the assembler source code in text format : add the option '' | ||
| Ligne 54: | Ligne 54: | ||
| The W runtime is located in a directory present in the OS's //PATH//, and should therefore be found automatically by the shell.\\ | The W runtime is located in a directory present in the OS's //PATH//, and should therefore be found automatically by the shell.\\ | ||
| - | The directory containing the base path to the sources (//WSRC//) is optional. It is useful if the debugger needs to be used. The ' | + | The directory containing the base path to the sources (//WSRC//) is optional. It is useful if the debugger needs to be used. The ''-d'' option starts the runtime in debug mode on the program. The ''-t'' option displays the assembler instructions executed by the runtime for the requested program in the console. The runtime executes the binary program W < |
| + | The following are potential parameters that will be used by the W program (not by the runtime). | ||
| + | |||
| + | === Formatting === | ||
| + | < | ||
| + | > | ||
| + | > Usage: lwf <file.w> | ||
| + | > | ||
| + | </ | ||
| + | The formatter reads the input file, <file.w>, reformats it, and then overwrites the original file with the formatted version. The formatted version is also sent to standard output.\\ | ||
| + | Formatting is done according to the //W// standard : | ||
| + | * Indentation in increments of 3 spaces | ||
| + | * End-of-line comments, starting with '';'', | ||
| + | * The following instructions raise the level: '' | ||
| + | === Lex Compilation === | ||
| + | //Under Construction// | ||