executable

size of executable files?

余生长醉 提交于 2020-01-11 10:04:38
问题 I created a very small code to add two integers and save the result in another variables, both in assembly language and c language. code in assembly cost me 617 bytes but code in C took 25k bytes!! why there is a huge difference? Also how can I view the assembly symbolic instructions for C code I wrote? 回答1: High level languages have a certain amount of overhead. While in assembly all you have is exactly what you say. The overhead you are seeing in this case is likely the static binding of

size of executable files?

我们两清 提交于 2020-01-11 10:02:34
问题 I created a very small code to add two integers and save the result in another variables, both in assembly language and c language. code in assembly cost me 617 bytes but code in C took 25k bytes!! why there is a huge difference? Also how can I view the assembly symbolic instructions for C code I wrote? 回答1: High level languages have a certain amount of overhead. While in assembly all you have is exactly what you say. The overhead you are seeing in this case is likely the static binding of

Getting External Exception C0000006 in D2006 app - how can I force delphi to load the whole executable?

 ̄綄美尐妖づ 提交于 2020-01-11 06:45:13
问题 I get this occasionally when exiting my app - my app is running the EXE over a network. I understand it's a page fault when part of the EXE is loaded on demand. I have also observed it in the OnDrawCell method of a TDrawGrid, so I'm mystified how that might have caused a page load. Also, the exception kept happening. So my questions: Can Error C0000006 result from other causes? I have made fairly major changes to the way the app manages memory, though nothing out of the ordinary, and I'm

How to bind 64-bit and 32-bit executable into one?

浪子不回头ぞ 提交于 2020-01-11 05:13:06
问题 Alright so my idea was some way to bind both 64-bit and 32-bit Windows executables into one application so if it doesn't run the 64-bit version it would then try the 32-bit one. I was reading up about PE's and learned a little about MS-DOS Real Mode Stub and it says how it invokes an application (usually an error message). But every time I tried to do research about MS-DOS Real Mode Stub it seemed to only show error messages. So my idea was to overwrite the STUB with my 32-bit application. My

Running a Haskell program on the Android OS

扶醉桌前 提交于 2020-01-10 06:14:27
问题 Forenote: This is an extension of the thread started on /r/haskell Lets start with the facts: Android is one awesome Operating System Haskell is the best programming language on the planet Therefore, clearly, combining them would make Android development that much better. So essentially I would just like to know how I can write Haskell programs for the Android OS. My question is: How can I get a Haskell program to execute/run on the Android OS? 回答1: How you do it is by first getting a Haskell

How to pass arguments from wrapper shell script to Java application?

社会主义新天地 提交于 2020-01-09 19:19:08
问题 I want to run Java programs I am creating at on the command line (linux and mac). I don't want to type "java" and arguments all the time, so I am thinking about creating wrapper scripts. What's the best way to do this so that they work everywhere? I want to be able to pass arguments, too. I was thinking of using "shift" to do this (removing first argument). Is there a better way to do this without using scripts at all? Perhaps make an executable that doesn't require invocation through the

How do I compile a PyQt script (.py) to a single standalone executable file for windows (.exe) and/or linux?

江枫思渺然 提交于 2020-01-09 12:21:05
问题 I started to fiddle with PyQt, and made a "beautiful" script from the pyqt whitepaper example app (pastebin) It works perfectly in Windows and Linux (with qt environment already installed on both). Now my question is: Since I am trying to use Qt because it is compiled (at least pure old C++ based Qt), how can I compile some .exe file to run it on Windows, or a standalone executable for Linux. The point is that I want the program to be compiled, because of speed and portability, instead of

How do I compile a PyQt script (.py) to a single standalone executable file for windows (.exe) and/or linux?

試著忘記壹切 提交于 2020-01-09 12:18:07
问题 I started to fiddle with PyQt, and made a "beautiful" script from the pyqt whitepaper example app (pastebin) It works perfectly in Windows and Linux (with qt environment already installed on both). Now my question is: Since I am trying to use Qt because it is compiled (at least pure old C++ based Qt), how can I compile some .exe file to run it on Windows, or a standalone executable for Linux. The point is that I want the program to be compiled, because of speed and portability, instead of

Getting the absolute path of the executable, using C#?

早过忘川 提交于 2020-01-08 11:49:08
问题 Have a look at this pseudocode: string exe_path = system.get_exe_path() print "This executable is located in " + exe_path If I build the above program and place the executable in C:/meow/ , It would print out This executable is located in C:/meow/ each time it is run, regardless of the current working directory. How could I easily accomplish this using C# ? 回答1: MSDN has an article that says to use System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase ; if you need the

Java Runtime exec() behavior

时光毁灭记忆、已成空白 提交于 2020-01-06 12:46:08
问题 I am attempting to programmatically generate javadocs via an instance of Runtime through the exec() method by passing in the commands necessary to generate javadocs. First of all I am unfamiliar with creating javadocs via the command line and second I am unfamiliar with the exec() method from Runtime . As a test I was able to execute executables compiled from C# classes through the exec() command but was not able to do so with executables compiled from C++ classes, what is causing this