On Tue, Jun 21, 2016 at 11:58 AM, John Walker <
[email protected]> wrote:

> C programmers always want to rewrite Assembler into a copy of their
> language.  I understand why, they want to have it the same or similar
> everywhere.   Still, we should avoid the CRUFT of C and C++ and Java most
> definitely.
>

​True. The main plus of using C with embedded HLASM is that when a new set
of instructions come out, the C compiler can take use of them with a simple
re-compile, perhaps with a new ARCH() option. With HLASM, we need to
rewrite the code, sometimes significantly. ​

​I'm don't write code for a living (sysprog). I know how much time it took
for me to change my code from a L & LTR followed by a branch to a LT
followed by a branch relative. That was probably overkill for code which
was working fine. But some of the even newer instructions could be used for
quite an improvement performance (translate that to "save MSU cost"), but
at the time cost of redesigning the code.​


-- 
"Pessimism is a admirable quality in an engineer. Pessimistic people check
their work three times, because they're sure that something won't be right.
Optimistic people check once, trust in Solis-de to keep the ship safe, then
blow everyone up."
"I think you're mistaking the word optimistic for inept."
"They've got a similar ring to my ear."

>From "Star Nomad" by Lindsay Buroker:

Maranatha! <><
John McKown

Reply via email to