All Projects → andrewwutw → Build Djgpp

andrewwutw / Build Djgpp

Licence: gpl-3.0
Build DJGPP cross compiler and binutils on Windows (MinGW/Cygwin), Mac OSX and Linux

Programming Languages

shell
77523 projects

Labels

Projects that are alternatives of or similar to Build Djgpp

Pcjs.v1
PCjs Machines 1.0 (archived)
Stars: ✭ 468 (+227.27%)
Mutual labels:  dos
Lotusdrv
Lotus 1-2-3 R4D Display Driver for DOSEMU
Stars: ✭ 62 (-56.64%)
Mutual labels:  dos
Ddos Rootsec
DDOS Archive by RootSec (Scanners, BotNets (Mirai and QBot Premium & Normal and more), Exploits, Methods, Sniffers)
Stars: ✭ 108 (-24.48%)
Mutual labels:  dos
Ddos Deflate
Fork of DDoS Deflate with fixes, improvements and new features.
Stars: ✭ 568 (+297.2%)
Mutual labels:  dos
Smallerc
Simple C compiler
Stars: ✭ 986 (+589.51%)
Mutual labels:  dos
Emu2
Simple x86 and DOS emulator for the Linux terminal.
Stars: ✭ 75 (-47.55%)
Mutual labels:  dos
Dosbox Staging
DOS/x86 emulator focusing on ease of use
Stars: ✭ 412 (+188.11%)
Mutual labels:  dos
Awesome Dos
Curated list of references for development of DOS applications.
Stars: ✭ 123 (-13.99%)
Mutual labels:  dos
Slowloris
Asynchronous Python implementation of SlowLoris DoS attack
Stars: ✭ 51 (-64.34%)
Mutual labels:  dos
Omniscent
Analyze of Mekka & Symposium 1997 PC 4K 1st "Omniscent"
Stars: ✭ 104 (-27.27%)
Mutual labels:  dos
Doslinux
Run Linux programs on DOS
Stars: ✭ 770 (+438.46%)
Mutual labels:  dos
Ufonet
UFONet - Denial of Service Toolkit
Stars: ✭ 963 (+573.43%)
Mutual labels:  dos
Node Fast Ratelimit
☔️ Fast and efficient in-memory rate-limit for Node, used to alleviate most common DOS attacks.
Stars: ✭ 84 (-41.26%)
Mutual labels:  dos
Bloom
🌸 HTTP REST API caching middleware, to be used between load balancers and REST API workers.
Stars: ✭ 553 (+286.71%)
Mutual labels:  dos
Warchild
War Child denial of service testing suite
Stars: ✭ 112 (-21.68%)
Mutual labels:  dos
Hulk
HULK DoS tool ported to Go with some additional features.
Stars: ✭ 427 (+198.6%)
Mutual labels:  dos
Lor Axe
🪓 a multi-threaded, low-bandwidth HTTP DOS tool
Stars: ✭ 72 (-49.65%)
Mutual labels:  dos
Bootmine
Bootable minesweeper game in a 512-byte boot sector
Stars: ✭ 136 (-4.9%)
Mutual labels:  dos
Asm2c
Tool to convert DOS Assembly code to C code
Stars: ✭ 121 (-15.38%)
Mutual labels:  dos
Nuvie
Nuvie - New Ultima VI Engine
Stars: ✭ 99 (-30.77%)
Mutual labels:  dos

Building DJGPP cross compiler on Windows, Mac OSX, Linux and FreeBSD.

build-djgpp : Build DJGPP cross compiler and binutils on Windows (MinGW/Cygwin), Mac OSX, Linux and FreeBSD.

Prebuilt binary files

If you don't want build DJGPP by yourself, you can download prebuilt DJGPP binary files for MinGW, OSX and Linux from GitHub Release page.

Requirement

Before running this script, you need to install these programs first :

  • g++
  • gcc
  • unzip
  • bison
  • flex
  • make (or gmake for FreeBSD)
  • makeinfo
  • patch
  • zlib header/library
  • curl (for Cygwin/OSX/Linux/FreeBSD)
  • wget (for MinGW)
  • bash (for FreeBSD)

Depending on your system, installation procedure maybe different.

On Debian/Ubuntu, you can install these programs by :

sudo apt-get update
sudo apt-get install bison flex curl gcc g++ make texinfo zlib1g-dev g++ unzip

Fedora :

sudo yum install gcc-c++ bison flex texinfo patch zlib-devel

MinGW :

mingw-get update
mingw-get install msys-unzip libz-dev msys-wget msys-bison msys-flex msys-patch

Configuration

Default install location is /usr/local/djgpp. You can change install location by setting environment variable DJGPP_PREFIX :

DJGPP_PREFIX=/usr/local/my-djgpp

Default support language is C and C++. You can change supported languages by setting environment variable ENABLE_LANGUAGES :

ENABLE_LANGUAGES=c,c++,f95,objc,obj-c++

Building DJGPP compiler

To build DJGPP, just run :

./build-djgpp.sh djgpp-version

Currently supported djgpp-version :

  • 4.7.3
  • 4.8.4
  • 4.8.5
  • 4.9.2
  • 4.9.3
  • 4.9.4
  • 5.1.0
  • 5.2.0
  • 5.3.0
  • 5.4.0
  • 5.5.0
  • 6.1.0
  • 6.2.0
  • 6.3.0
  • 6.4.0
  • 6.5.0
  • 7.1.0
  • 7.2.0
  • 7.3.0
  • 7.5.0
  • 8.3.0
  • 9.3.0
  • 10.1.0
  • 10.2.0

For example, to build DJGPP for gcc 10.2.0 :

./build-djgpp.sh 10.2.0

It will download all necessary files, build DJGPP compiler and binutils, and install it.

Using DJGPP compiler

There are 2 methods to run the compiler (BASE_DIR is your DJGPP install location).

  • Use compiler full name :
BASE_DIR/bin/i586-pc-msdosdjgpp-g++ hello.cpp
  • Or, use compiler short name, you have to change environment variables.

If you are using Linux :

export PATH=BASE_DIR/i586-pc-msdosdjgpp/bin/:$PATH
export GCC_EXEC_PREFIX=BASE_DIR/lib/gcc/
g++ hello.cpp

Or, run :

source BASE_DIR/setenv

If you are using Windows command prompt :

PATH=BASE_DIR/i586-pc-msdosdjgpp/bin;%PATH%
set GCC_EXEC_PREFIX=BASE_DIR/lib/gcc/
g++ hello.cpp

Or, run :

BASE_DIR/setenv.bat

Supported DJGPP Utilities

  • dxe3gen
  • dxe3res
  • dxegen
  • exe2coff
  • stubedit
  • stubify

Successful build

  • OSX 10.12.5
  • Debian 7 (32bit)
  • Ubuntu 12 (64bit)
  • FreeBSD-10.2 (64bit)
  • Cygwin (32bit Windows XP)
  • MinGW (32bit Windows XP)

Thanks

This script is based on spec file from DJGPP source rpm files by Andris Pavenis :

http://ap1.pp.fi/djgpp/index.html

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].