4 ms·
Just to be clear, the input must be written in a subset of C, because many constructs are not recognized, like unsigned types, static variables, [] arrays, etc.
by teo_zero 2y ago
Just to be clear, the input must be written in a subset of C, because many constructs are not recognized, like unsigned types, static variables, [] arrays, etc.
Is there a plan to remove such limitations?
- blueflow 2y agoThese are restrictions of the target language and there isn't much pnut can do about this.
- fulafel 2y agoSurely unsigned (aka modulo) arithmetic and arrays are expressible in shell script? edit: For reference, someone's take on building out better bash-like array functionality in posix shell: https://github.com/friendly-bits/POSIX-arrays https://github.com/friendly-bits/POSIX-arrays (there's only very rudimentary array support built-in to posix sh, basically working with stuff in $@ using set -- arg1 arg2..)
- lmm 2y agoShell is Turing complete, you could implement anything there with enough effort.