Questions tagged [executable]

An executable is a binary file that can be executed by the operating system.

An executable is a binary file that can be executed by the operating system.

3697 questions
45
votes
4 answers

Do ghc-compiled binaries require GHC or are they self-contained?

If a friend wants to run my Haskell binaries, does he have to first install Haskell, or can he immediately run the binary by itself? Is the answer the same on Mac, Windows, and Linux?
mcandre
  • 22,868
  • 20
  • 88
  • 147
45
votes
6 answers

Why are "Executable files" operating system dependent?

I understand that each CPU/architecture has it's own instruction set, therefore a program(binary) written for a specific CPU cannot run on another. But what i don't really understand is why an executable file (binary like .exe for instance) cannot…
44
votes
5 answers

How to strip executables thoroughly

I'd like to strip as much as I can - on Linux: an ELF. I only want in there the stuff I need to run it. I tried using strip: strip --strip-all elf But it doesn't seem to do a good job: nm still displays lots of stuff, and the binary is still…
peoro
  • 25,562
  • 20
  • 98
  • 150
43
votes
5 answers

Creating executable files in Linux

One thing I plan to be doing is writing (painfully simple) Perl scripts, and I'd like to be able to run them without explicitly calling Perl from the terminal. I appreciate that, to do this, I need to grant them execute permissions. Doing this with…
user100246
43
votes
2 answers

Compile a Standalone Static Executable

I'm trying to compile an executable (ELF file) that does not use a dynamic loader. I built a cross compiler that compiles mips from linux to be used on a simulator I made. I asserted the flag -static-libgcc on compilation of my hello.cpp file…
Dan Snyder
  • 1,483
  • 7
  • 20
  • 29
42
votes
8 answers

Compile to a stand-alone executable (.exe) in Visual Studio

how can I make a stand-alone exe in Visual Studio. Its just a simple Console application that I think users would not like to install a tiny Console application. I compiled a simple cpp file using the visual studio command prompt. Will the exe work…
Mohit Deshpande
  • 53,877
  • 76
  • 193
  • 251
42
votes
5 answers

how to export a executable jar in gradle, and this jar can run as it include reference libraries

how to export a executable jar in gradle, and this jar can run as it include reference libraries. build.gradle apply plugin: 'java' manifest.mainAttributes("Main-Class" : "com.botwave.analysis.LogAnalyzer") repositories { …
jychan
  • 991
  • 2
  • 10
  • 14
41
votes
8 answers

Embedding an external executable inside a C# program

How do I embed an external executable inside my C# Windows Forms application? Edit: I need to embed it because it's an external free console application (made in C++) from which I read the output values to use in my program. It would be nice and…
Josh
  • 13,530
  • 29
  • 114
  • 159
41
votes
2 answers

Why does the PLT exist in addition to the GOT, instead of just using the GOT?

I understand that in a typical ELF binary, functions get called through the Procedure Linkage Table (PLT). The PLT entry for a function usually contains a jump to a Global Offset Table (GOT) entry. This entry will first reference some code to load…
F30
  • 1,036
  • 1
  • 10
  • 21
41
votes
6 answers

Antivirus False positive in my executable

I just ran into an annoying problem. Suddenly Avira AntiVir started to flag one executable from my software as being a virus. As the default action from almost any user is to click OK and Avira suggests to put the virus in quarantine, most of my…
Ricardo Acras
  • 35,784
  • 16
  • 71
  • 112
41
votes
5 answers

what's in a .exe file?

So a .exe file is a file that can be executed by windows, but what exactly does it contain? Assembly language that's processor specific? Or some sort of intermediate statement that's recognized by windows which turns it into assembly for a specific…
Gordon Gustafson
  • 40,133
  • 25
  • 115
  • 157
40
votes
18 answers

Packaging Java apps for the Windows/Linux desktop

I am writing an application in Java for the desktop using the Eclipse SWT library for GUI rendering. I think SWT helps Java get over the biggest hurdle for acceptance on the desktop: namely providing a Java application with a consistent, responsive…
alexmcchessers
  • 954
  • 1
  • 13
  • 16
40
votes
2 answers

What is the smallest possible Windows (PE) executable?

As a precursor to writing a compiler I'm trying to understand the Windows (32-bit) Portable Executable format. In particular I'd like to see an example of a bare-bones executable which does nothing except load correctly, run and exit. I've tried…
Matthew Murdoch
  • 30,874
  • 30
  • 96
  • 127
40
votes
7 answers

How to check if a program is using .NET?

Can we check if a running application or a program uses .Net framework to execute itself?
cpx
  • 17,009
  • 20
  • 87
  • 142
39
votes
1 answer

svn: how to set the executable bit on a file?

How do I set the executable bit on a file in an svn repository? I've tried: chmod +x sync.py svn commit sync.py -m "Make sync.py executable" But the change was not propagated. How do I set the executable bit in the svn repository?
Adam Matan
  • 128,757
  • 147
  • 397
  • 562