3 ms·
> remember this is a machine (B5000 et al) that depended on the compiler creating correct and sane code not just for system security but system integrity - only
by derefr 13y ago
> remember this is a machine (B5000 et al) that depended on the compiler creating correct and sane code not just for system security but system integrity - only 'root' could write compilers and one bad instruction would take the entire system down
This doesn't actually sound like such a bad thing, provided enough processing-power to back it up (i.e. if you had an architecture like this in modernity.)
As as I see it, the problem is, at its core, in having a system call to spawn a process given a file full of (unsafe, unchecked) machine-code. You can avoid this: instead, only have a system call to execute a file of bytecode. Everything in userspace would target that bytecode format as if it were the machine's instruction-set. The kernel would then have to have an interpreter and JIT built into it, and do static safety checking--ala Google's NaCl sandboxing--before it ran the results. Both are CPU-costly, but doable, and the results could be cached.
Of course, root would still have to write the compiler... because the true "compiler"--the one targeting the native machine-architecture--would be the kernel.
- Taniwha 13y agoSo you're using your B6700 as the single big mainframe at your university ('big' is relative here your phone is almost a 1000 times faster and has a 5000 times as much memory and 'disk' storage at one 1,000,000th the price - we bought 1.5Mb for ours for a million dollars) You're a full professor, very important in the world, and you're running a big multi-hour data analysis run and the compsci student at the terminal next to you is writing a compiler (that would have been me) - every time they test their compiler code the system crashes and scribbles garbage over the hard drive a day later they've recovered the disk and that student is sitting there again ..... you go and see the powers that be Basically if you wanted to write a compiler for this multi-million dollar platform you needed to have one for yourself ..... only one I know of was written outside Burroughs (UCSD Pascal) - my compilers were all interpreted until we got a Vax