3v0,
"Many of the modern languages run on virtual machines to expressly divorce them from the physical machine. "
I already acknowledged that assembler requires a knowledge of the CPU architecture, so the above statement is not pertinent to this discussion.
NorthGuy,
"It is hard to mix Assembler (or anything else for that matter) with Java because they designed Java this way. Thay wanted to abstract from the hardware, and if you want it, that's what are you going to get with Java. "
Yes, and C is somewhat independent from the hardware also. Maybe that is why they decided to support that combination. Anyway, they are sacrificing performance for portability, which is OK if that is what they want to do.
MisterT,
"Ok.. so, how would you implement dependency injection in embedded applications? Sometimes it is hard to separate hardware from software, but it can be done if you are smart enough.. right? "
What is "dependency injection"? By writing a separate compiler for each different CPU, and using a standard set of functions for the defined language, it should be possible to implement this language on any computer.
Ratch
"Many of the modern languages run on virtual machines to expressly divorce them from the physical machine. "
I already acknowledged that assembler requires a knowledge of the CPU architecture, so the above statement is not pertinent to this discussion.
NorthGuy,
"It is hard to mix Assembler (or anything else for that matter) with Java because they designed Java this way. Thay wanted to abstract from the hardware, and if you want it, that's what are you going to get with Java. "
Yes, and C is somewhat independent from the hardware also. Maybe that is why they decided to support that combination. Anyway, they are sacrificing performance for portability, which is OK if that is what they want to do.
MisterT,
"Ok.. so, how would you implement dependency injection in embedded applications? Sometimes it is hard to separate hardware from software, but it can be done if you are smart enough.. right? "
What is "dependency injection"? By writing a separate compiler for each different CPU, and using a standard set of functions for the defined language, it should be possible to implement this language on any computer.
Ratch