Comments (2)
I am opening a branch to work on this.
For example, compiling the following:
int main()
{
struct point {
int x, y;
} *p;
int i;
p = (struct point *) malloc(10*sizeof(struct point));
for (i = 0; i < 10; ++i) {
p[i].x = 0;
}
return 0;
}
results in the error:
$ ./amacc -o arr arr.c
16: compiler error gen=-1228300496
from amacc.
Closed by #88
from amacc.
Related Issues (20)
- AssertionError: shift operations HOT 3
- How left shift handles negative number? HOT 1
- Remove the presence of global *e HOT 3
- Improve portability by adding ssize_t and long types
- Reorder opcode enumeration HOT 1
- Incorrect execution result for simple program HOT 2
- Modulo (operator%) does not give correct result HOT 2
- Can't create elf file directly on ARM? HOT 9
- Calling convention documentation? HOT 1
- id->class is not consistently defined HOT 3
- Can the codegen() for IR instruction CLCA be removed? HOT 3
- Consider adding static storage class? HOT 4
- Allow array declarations using [] operators. HOT 2
- Can't create ELF executable from bootstrap amacc compiler
- Add floating point type? HOT 3
- Add support for struct assignement.
- Compound assign operators don't work with struct member lvalues HOT 1
- bad dereference compiler error HOT 1
- Simple program breaks the compiler HOT 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 amacc.