How does it work?

SimpC

The C like statements are interpreted by JavaScript, right in the browser. It's really simplistic. It only supports int and pointers to int (arbitrary number of them). There is no concept of if/for, no functions, no structs.

The aim is to understand pointers, not build a C interpreted in the browser :)

Memory representation

If you enable "Show raw bits", you will see how int and pointers are usually stored in memory. int are stored as two's complement (have a look at -1), and pointers are just positive numbers all the time, so they are just a binary number corresponding to the memory cell.

Go back