Re:Why Pascal is Not My Favorite Programming Language (1981)
by klibertp on Wednesday September 03, 2014 @09:41AM
(#8262930)
Just to confirm this: Turbo Pascal (at least the versions I had contact with) allowed for inline assembler and (as I read on Wikipedia page) machine code. You can't get much "closer to the metal" than this.
[ Parent
| on HN ]
Re:Why Pascal is Not My Favorite Programming Language (1981)
by SeanDav on Wednesday September 03, 2014 @11:31AM
(#8263486)
Allowing inline assembler is not the same thing as the language being close to the metal. Close to the metal means staying within the language but still having the power to do the same things as pure assembler.
Re:Why Pascal is Not My Favorite Programming Language (1981)
by pjmlp on Wednesday September 03, 2014 @12:00PM
(#8263631)
If that is the definition, than C surely isn't close to the metal, specially since intrisics, function modifiers and inline assembler are not part of the standard.
Re:Why Pascal is Not My Favorite Programming Language (1981)
by JoeAltmaier on Wednesday September 03, 2014 @11:35AM
(#8263506)
I'd say it differently. "Close to the metal" means the language constructs correspond to ASM constructs. E.g. PL/M 86 (an early Intel language for the 8086) had something like pointers (based variables) that corresponded exactly to the addressing modes of the machine code. Their data types corresponded to register widths available. They had a string-move intrinsic that was exactly REPNZ MOVSB etc.