i have a small program that uses 32bit object file, and i wish to run it under dos operating system. now, after searching i found DJGPP.
is there a way to use DJGPP to compile my program to 16Bit dos executable format?
thanks in advance
compile C program to MS-DOS environment
2.6k Views Asked by bks At
2
There are 2 best solutions below
0
Fabel
On
If you want to take advantage of a 32-bit processor (386 and above) to run 32-bit code under 16-bit DOS (using DPMI), then DJGPP is definitely the right tool. That is, it produces 16-bit dos executable files containing 32-bit code. For object format it uses 32-bit COFF.
Related Questions in C
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in COMPILATION
- I am trying to run java application in Eclipse, When I try to do Run > Run as > Java Application it starts to show little processing but nothing happe
- Unable to run get .exe file from assembly NASM
- Javascript to Java
- How to compile only the changed files in Verilator?
- Why does the .exe file become locked after compiling?
- Installing the C compiler for LC3
- compile syzkaller fuzzer failed without any error or warning
- Solved: Create standalone executable for MacOS with OpenCV and libmagic
- How to work around the "collect2: error: ld returned 1 exit status" error when running simple fortran files with the gfortran command?
- how to add a compiler type supported for sccache?
- Vulkan ‘VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR’ was not declared in this scope
- Rust newbie compile error (for (key: String, value: String) in | ^ expected one of `)`, `,`, `@`, or `|`)
- latest version of redshift with crazy compile times
- Problem compiling out-dated Typescript code
- What is appropriate substitution for configurations.compile in newer gradle e.g. version 8.7?
Related Questions in DOS
- DOSbox automatically freezes and crashes without any prompt warnings
- How to limit printing contents of ASCII file to once while using recursion?
- Move string to end of file assembly
- I search a unit to solve the turbo pascal 255 string limit
- Unknown error in assembly language code, the result of multiplication operation is always random symbol
- is there analog of unix program "which" in DOS operating system?
- will gwbasic run on 32 bit windows 7
- "Symbol not defined : @STACK " error in ASM code for 8086. Compiled using DOSBOX ,MASM
- Why does code in MS-DOS Debug does not run and makes the prompt disappear?
- Error in emulator output for pong game in assembly language
- x86 MS Macro Assembler Hello World program crashes
- Convert DOS od (dump) file output to txt
- MS-DOS D-Fend Reloaded file encoding "application/octet-stream; charset=binary" to ASCII in ubuntu
- Checking for collision of snake with border in 8088 assembly language
- Question for the dos EGA 0E mode port programming
Related Questions in DJGPP
- Porting kernel project from DJGPP to MinGW
- Is it really necessary to lock all memory that might be touched in an interrupt handler?
- Disable/enable USB interrupts in MSDOS
- Need C compiler for Windows 7 64-bit, to compile to DOS target
- Implementing vertical sync MS DOS C++
- Protected Hardware Interrupt Handler Stuck? (DJGPP)
- fread error with DJGPP
- How to install DJGPP
- Keyboard handler causes segfault (djgpp)
- Strange compilation errors when compiling C++ on DJGPP
- Waiting in DOS using djgpp -- alternatives to busy wait?
- Compiling Assembly code
- djgpp gpp pass variable inline assembly
- compile C program to MS-DOS environment
- gcc 2.03 gives cc1.exe :"out of memory alloction" error while compilation with 32-bit windows 7 OS
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Take a look at this related Stack Overflow question. It might help.