My posted on the Hi/Lo function got somewhat highjacked, but it turned into a topic of interest to me so I wanted to start a new thread on it.
MCM's last remark - are there examples of where PowerBASIC compiled code does not result in performance as good as most assembly language programmers might provide - is a good question. I think that question specifically referred to the use of assembly language where PowerBASIC statements already exist to do the job.
The other question would be if there things assembly language could do, that can't be done via PowerBASIC statements.
I'm not an assembly language programmer but have wondered when would I use it, even if I could? The two question above are at the core of the issue, and would help me decide if I wanted to take the time to learn more about assembly language.
I know that in an earlier post of mine, where speed was an issue, pointers and assembly language were very fast - comparably so. I walked away thinking that a clever PowerBASIC programmer generally need not turn to assembly language.
But, the door is open - when should a PowerBASIC programmer turn to assembly language? Is there a class of problems for which the PowerBASIC language needs a boost, or where assembly language is a natural, unique solution? It's a PowerBASIC feature, so somebody must think so!
I'd guess the answer is that the need is there, but generally under rare circumstances. But that seems counter to the number of times that assembly language solutions have popped up in the forums, so I guess it's time for me to ask the question.
MCM's last remark - are there examples of where PowerBASIC compiled code does not result in performance as good as most assembly language programmers might provide - is a good question. I think that question specifically referred to the use of assembly language where PowerBASIC statements already exist to do the job.
The other question would be if there things assembly language could do, that can't be done via PowerBASIC statements.
I'm not an assembly language programmer but have wondered when would I use it, even if I could? The two question above are at the core of the issue, and would help me decide if I wanted to take the time to learn more about assembly language.
I know that in an earlier post of mine, where speed was an issue, pointers and assembly language were very fast - comparably so. I walked away thinking that a clever PowerBASIC programmer generally need not turn to assembly language.
But, the door is open - when should a PowerBASIC programmer turn to assembly language? Is there a class of problems for which the PowerBASIC language needs a boost, or where assembly language is a natural, unique solution? It's a PowerBASIC feature, so somebody must think so!
I'd guess the answer is that the need is there, but generally under rare circumstances. But that seems counter to the number of times that assembly language solutions have popped up in the forums, so I guess it's time for me to ask the question.
Comment