mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-07 07:12:25 +01:00
Update wikipage Executing a System Within and Without EiffelStudio. (Signed-off-by:jocelyn).
git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@1657 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
[[Property:weight|5]]
|
||||
[[Property:uuid|8256398e-d1a9-0471-664a-3225c7dfb306]]
|
||||
To complete this study of the compilation process let's see a few more properties of how you can <span>execute</span> an Eiffel system, both in EiffelStudio and as a compiled system that you deliver to its users, who may need to run it without EiffelStudio.
|
||||
<div>
|
||||
|
||||
==Arguments==
|
||||
|
||||
Our example system is very simple and has no need for execution arguments. In more advanced cases you may want to pass values to the execution, such as a numeric parameter or a file name, so that you can have different executions without changing and recompiling the software.
|
||||
@@ -13,36 +13,33 @@ There are 2 ways to specify execution arguments from within EiffelStudio. The fi
|
||||
<code lang=text>
|
||||
Project --> Project Settings --> Debug/Profile --> Program Execution</code>
|
||||
The second is through the argument dialog which can be opened by right-clicking on any of the debugging or program execution buttons on the main toolbar. The latter is more convenient for quick and easy access to execution arguments.
|
||||
</div><div>
|
||||
|
||||
==Executing from EiffelStudio==
|
||||
|
||||
We have seen how to execute a compiled system from within EiffelStudio: choose one of the appropriate execution buttons, with or without breakpoints.
|
||||
</div><div>
|
||||
|
||||
==Executing a finalized system outside of EiffelStudio==
|
||||
|
||||
A finalized system can be executed on any computer of the appropriate platform; it doesn't need EiffelStudio. The executable version is in the directory
|
||||
<code lang=text>
|
||||
project_directory/EIFGENs/target_name/F_code</code>
|
||||
|
||||
where <code>project_directory</code> is the project's directory and <code>target_name</code> ist the name of the target. The name of the executable file is
|
||||
<code>
|
||||
system_name.exe</code>
|
||||
where <code>system_name</code> is the name that you have assigned to your system in the project settings (reflected in the ECF file).
|
||||
where `project_directory` is the project's directory and `target_name` is the name of the target. The name of the executable file is `system_name` (or `system_name.exe` on Windows) where `system_name` is the name that you have assigned to your system in the project settings (reflected in the ECF file).
|
||||
|
||||
The target of the Guided Tour system is <code>classic</code> and the name is <code>simple</code>, so you can locate <code>simple.exe</code> in <code lang=text>EIFGENs/classic/F_code</code> for your project, and run it stand-alone if you like.
|
||||
The target of the Guided Tour system is `classic` and the name is `simple`, so you can locate `simple.exe` (or `simple.exe` on Windows) in `EIFGENs/classic/F_code` for your project, and run it stand-alone if you like.
|
||||
|
||||
If you run the system from a command line, and it requires arguments (<code>simple</code> doesn't), you will provide the appropriate arguments after the command name:
|
||||
If you run the system from a command line, and it requires arguments (`simple` doesn't), you will provide the appropriate arguments after the command name:
|
||||
<code>
|
||||
system_name.exe ... arg ...</code>
|
||||
system_name ... arg ...</code>
|
||||
|
||||
Because various platforms have different conventions, "relative paths" referenced in your system will mean something different under Unix/Linux, where they relate to the directory from which the command is launched, and under Windows, where they relate to the application's directory.
|
||||
</div><div>
|
||||
|
||||
==Executing a frozen or melted system outside of EiffelStudio==
|
||||
|
||||
A system compiled in "Workbench mode" -- frozen or melted -- is normally meant for execution within EiffelStudio, not for outside delivery, since it is not optimized. If you need to execute it outside of EiffelStudio, make sure that you have access to the <code>system_name.melted</code> file in <code>project_directory</code> <code lang=text>/EIFGENs/target_name/W_code</code>.
|
||||
</div><div>
|
||||
|
||||
==Moving on==
|
||||
|
||||
With this discussion of compilation and execution we have finished our review of the key capabilities of EiffelStudio. Not everything has been covered, but you are now familiar with the essentials and ready to discover the rest by yourself, both by trying out various capabilities -- most of which should be self-explanatory -- and examining the extensive online documentation that accompanies the product.
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user