Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Yeah, but it's all machine code...


sort by: page size:

It was. It does use machine code utility routines for various things though. I never looked into it much, but did list the basic part at some point.

Yes, directly to machine code.

Not of it's a computer doing the programming

No, it is possible to hand code everything that moc generates.

Yes but it is a strict set of very limited codes, nothing which gains access to the machine a la syscalls.

But can it code though?

I was referring to the actual programming only. Sorry if I inferred otherwise.

Can confirm they do. I worked at a company that was producing control systems for electric engines. Great environment and fun job but the code was beyond redemption. 15k line files with 2k+ lines #ifdef statements that ran different code for different customers, some variable names were just curses against pushy clients, not a single abstraction in sight.

Not only they exist, they power massive machines that could crush a person in the blink of an eye.


The code generates the computer I think.

It probably contains lots of proprietary code to interface with the hardware.

D's machine model does actually assume the hardware, and using the compile time metaprogramming you can pretty much do whatever you want when it comes to bit twiddling - whether that means assembly, flags etc.

That's not an argument, that's a truism. You can make working (complex) software using nothing but machine code keyed into volatile memory via front-panel switches.

Yep, for example MS-DOS programming using only BIOS calls.

I doubt, and rightfully so anyway. It's a full system, you need to operate it, not to dissect and build upon. Same like your car on-board computer, you don't have access to its source code, you only need how to steer the car on your way to work and back.

Not to split hairs but writing machine code is programming. I'm not sure what you're thinking about as "hardware manipulation". Programming is just one (and a very important one) part of what it takes to be a "software engineer" (or software developer, or whatever you want to call having skills to deliver, or be part of a team that delivers, major software projects).

Could you have it write code and run it on the machine too?

Yep, exactly right. The hardware is capable, but the software hasn't been created. Just like the original link - the hardware will (probably) provide enough input data to allow software to do all these cool things, but it's not been done yet and production code is a very long way from what is outlined.

No. They are "programmed" in languages entirely unlike anything we are used to (at least for now).

Is this sort of like having a pre-processor and system code to get a program loaded, linked and running?
next

Legal | privacy