Closed michaeljklein closed 8 years ago
1) I've decided to use a C import for the readers/writers
2) I'm using named pipes so mkfifo()
3) Reading/writing fixed-width "units" is being acheived by splitting into chars and then using putc
/getc
[15:30]
So yeah, this is completely blown out of the water with how much it's solved.
So we've decided to use posix pipes to call/return from the recompiled C code. Great, as they're often very fast and should port to Linux without too much difficulty. Now we need to figure out what kind of protocol to use to pass back and forth.
Notes:
char
as an IO typeSIZE_MAX / 8
chars as the size of the array (on my computer, a 2011 Macbook Pro (64-bit),SIZE_MAX
is18446744073709551615ULL
,2^64 - 1
, or 8 chars. The thing is though, one wouldn't expect the generated program to be piped that much; it's just not really in the scope of the project. Then, maybe consider having a defined end. However, the branch to check for the end + any conversion from the "natural" type to one that leaves room for an end number could be a lot of trouble to implement and its branching could take as long as piping 8 chars.