Comments (4)
Thanks for this, @rdebath!
So it's definitely this check:
https://github.com/rdebath/Brainfuck/blob/master/bitwidth.b#L93
I'm still trying to figure out what exactly that Zombie check is doing. Brainfuck is currently doing it's thing here :P If I get your code right, you check that the compiler has 16 bit cells in L71, and then check if the compiler has 8 bit cells within the 16-bit-checked block. Right?
from gitfuck.
Exactly. It's supposed to be checking for compilers that do a lot of optimising, but make the mistake of doing their constant folding (precalculation) with the wrong cell size. So, for example, the C code does it's calculation with integers, but the the generated code is using chars.
Because of this mixup in the cells sizes the dead code gets resurrected ... dead code running ... Zombie.
However, your compiler looks like it's a plain translation, one instruction at a time, from BF to assembler. So this particular diagnosis cannot apply.
from gitfuck.
I see. Yup, it's as plain as it can get. In fact, it's so plain that compiling 99 bottles of beer (~8K brainfuck) produces 128K assembler output. So something must be seriously wrong here.
from gitfuck.
Thanks for the PR, would've taken me ages to find that stupid bug!
from gitfuck.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitfuck.