GithubHelp home page GithubHelp logo

joshuawierenga / blink Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jart/blink

0.0 0.0 0.0 9 MB

tiniest x86-64-linux emulator

License: ISC License

Shell 0.22% Python 0.03% C 91.28% Assembly 3.95% Makefile 2.93% NASL 0.11% HTML 0.39% Roff 1.08%

blink's People

Contributors

aidanhs avatar aycanirican avatar ghaerr avatar ingenieroariel avatar jart avatar jiripospisil avatar joshuawierenga avatar jsoref avatar latedeployment avatar nsauzede avatar tkchia avatar trungnt2910 avatar vidalmaxime avatar vogtinator avatar zhaofengli avatar

Watchers

 avatar

blink's Issues

Get blink running on i686 and x86_64 windows xp+ via cygwin

While this shouldn't be that difficult in theory, there are lots of small issues that break stuff.

Todo:

Future todo:

  • Consider fixing Unicode support by always using utf 16 or 32.
  • Look into using gnulib as this should add many of the missing macros.
  • Find a version of cygwin >= 2.5.2 that produces binaries that run on i686 and x86_64 windows xp+.
  • Look into bundling cygwin1.dll with produced binaries https://cygwin.com/faq.html#faq.using.bundling-cygwin. Looks like static builds are not supported and so the only option would be to put both the executable and cygwin1.dll in a self extracting executable.
  • Look into i486 cygwin to align with blink.
  • Find the oldest version of make that works with blink and use it to build blink for windows 2000 and xp < sp3 with cygwin v1.7.18-1, probably 4.1 or 4.2. Someone mentioned using make 3.81 on macos and that worked. May also need to get a newer build of GCC for C11 compact.

Ignore this for now, I stopped when I just kept finding issue after issue during make check.
Testing results using this script:

Windows Version Architecture Cygwin Version Testing Result Notes
Windows XP SP3 32 bit v2.5.2-1 FAIL ftruncate_test.com, lseek_test.com and sigaction_test.com fail
Windows XP Pro 64 bit WoW64 v2.5.2-1 FAIL sigaction_test.com fails
Windows XP Pro 64 bit v2.5.2-1 FAIL No output from blink
Windows Vista 32 bit v3.3.6-1 Untested
Windows Vista 64 bit WoW64 v3.3.6-1 Untested
Windows Vista 64 bit v3.3.6-1 Untested

Note that any test could have outputted nothing due to jit issues and not be marked as a failure.

Cygwin mirrors:
Cygwin v2.5.2-1 32 bit: http://ctm.crouchingtigerhiddenfruitbat.org/pub/cygwin/circa/2016/08/30/104223.
Cygwin v2.5.2-1 64 bit: http://ctm.crouchingtigerhiddenfruitbat.org/pub/cygwin/circa/64bit/2016/08/30/104235.
Cygwin v3.3.6-1 32 bit: http://ctm.crouchingtigerhiddenfruitbat.org/pub/cygwin/circa/2022/11/23/063457.
Cygwin v3.3.6-1 64 bit: http://ctm.crouchingtigerhiddenfruitbat.org/pub/cygwin/circa/64bit/2022/12/03/135449.
Cygwin v3.4.3-1 64 bit: http://ctm.crouchingtigerhiddenfruitbat.org/pub/cygwin/circa/64bit/2023/01/07/105740.

Cygwin setup files:
Setup v2.874 32 bit: http://ctm.crouchingtigerhiddenfruitbat.org/pub/cygwin/setup/snapshots/setup-x86-2.874.exe.
Setup v2.874 64 bit: http://ctm.crouchingtigerhiddenfruitbat.org/pub/cygwin/setup/snapshots/setup-x86_64-2.874.exe.
Setup v2.923 32 bit: https://cygwin.com/setup/setup-2.923.x86.exe.
Setup v2.924 64 bit: https://cygwin.com/setup/setup-2.924.x86_64.exe.

Basic setup instructions
Check recommended Cygwin version for a given Windows version and arch above, then go to the ctm page for that version and take note of the recommended setup version and download from above.
Run downloaded setup from command line with -X --site ABOVE MIRROR.
If using Cygwin v3.3.6-1 32 bit then also add --allow-unsupported-windows.
Fill out the first few pages as desired and then ensure gcc-core, make, binutils and anything else desired are downloaded.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.