flat assembler
Message board for the users of flat assembler.
Index
> IDE Development > FASM's IDE Run command |
Author |
|
JohnFound 05 Feb 2013, 09:54
Running your code you always expect that you are running the code in its latest form. The simplest way to guarantee this is to compile the source and then to run it.
Imagine you changed some source file outside the IDE (or using second instance of the same IDE). The only other variant, although very, very hard to be properly implemented is to track all files that are included in the program and to detect their changes. So, taking into consideration the speed of FASM compiler, it is simplest solution to compile the source when you want to run it. |
|||
05 Feb 2013, 09:54 |
|
AsmGuru62 05 Feb 2013, 15:28
If I include a thousand files, then I would like to compile only if some files are modified, otherwise not needed to do what is already been done.
|
|||
05 Feb 2013, 15:28 |
|
shutdownall 05 Feb 2013, 15:35
I don't know what's the problem.
If the souce is not changed it is not compiled again. So when something is changed it is a good idea to compile it first. Anyway compiling is not just compiling it also stores changed source onto disk. This is a good feature if executable crashes. It then crashes FASM, too. So I would leave it as it is. |
|||
05 Feb 2013, 15:35 |
|
revolution 05 Feb 2013, 15:37
shutdownall wrote: This is a good feature if executable crashes. |
|||
05 Feb 2013, 15:37 |
|
baldr 05 Feb 2013, 20:15
Asm++,
It's a minor modification and you can do it yourself (you do have sources, don't you?) |
|||
05 Feb 2013, 20:15 |
|
Asm++ 06 Feb 2013, 07:04
JohnFound,
I understand your point of view, but why I have not the choice to do what I think is right? why the IDE force me to Compile when I just want to Run? one more note, Run supposed to be Run, NOT Compile and Run, this seems like MOV instruction! AsmGuru62, Exactly, that is what I mean, why have you to do something Unnecessary? why wasting time and power for Nothing? shutdownall, As revolution have said, FASMW runs your program as a Separate Process not as a Thread or something, so if it will crash, then it will, BUT alone, FASMW will be Fine . baldr, Yes it is a minor modification, and I do have the sources, but I'd like to see it in the Official Releases . _________________ Binary is nice, but Assembly is better! |
|||
06 Feb 2013, 07:04 |
|
JohnFound 06 Feb 2013, 07:44
Asm++ wrote: I understand your point of view, but why I have not the choice to do what I think is right? why the IDE force me to Compile when I just want to Run? one more note, Run supposed to be Run, NOT Compile and Run, this seems like MOV instruction! It is because of the two programming principles: 1. KISS - usually, running from inside the IDE you want to test the changes you made to the source code. So, in most cases the code you just changed, must to be first compiled. Why to invoke two commands while you can invoke only one. 2. POLA - If you made some changes and then run your program and these changes are not included in the executed program, would be more astonishing for the developer, than running compilation process and then running the result binary. If you want to run an already compiled binary, you don't need the IDE at all. Simply use the usual methods, provided by the OS you are working in. _________________ Tox ID: 48C0321ADDB2FE5F644BB5E3D58B0D58C35E5BCBC81D7CD333633FEDF1047914A534256478D9 |
|||
06 Feb 2013, 07:44 |
|
shutdownall 06 Feb 2013, 10:06
revolution wrote:
Oh I was wrong. Maybe due to several FASMW instances running. So the new started FASM process will die only. Anyway I like the behaviour of FASMW like it is. |
|||
06 Feb 2013, 10:06 |
|
shutdownall 06 Feb 2013, 10:13
Asm++ wrote: JohnFound, You are free to change the behaviour of FASMW, just change the part and rebuild it and go for it. Or write your own IDE. The much more kidding feature is to close any source on hit of ESC key. If you want to find some phrase in the source and hit ESC (due to behave of FIND in other WIN applications and yearly trained usage) - the souce is gone and if you have only one source file FASMW closes silently. But here it helps to change the source which will bring a save dialog first. Or you use the fresh IDE. As I understood Tomasz the IDE is just another example application, of course more useful than the beer example. There are more features added I use regularly, for example to integrate a listing in the IDE. I coupled this with CTRL-F8 (create symbol file) which automatically creates a listing and opens it in a new tab. Quite usefull. You have to do these features on your own. On the other hand it would be annoying to manually rebuild the application first with an additional keypress. And this could cause handling errors as well (forgot to recompile the source). For example under WIN7 I have added the main application working on to the taskline. So I can simply click there to start the old version. And if you only want to start it, why do you open the source first ? There are so many ways just to launch an application, there is no special way needed with the IDE I think. What about open an explorer window, pointing to your application and click it there to start ? |
|||
06 Feb 2013, 10:13 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.