Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
simplistic misunderstanding about ; + "" in a print
#13
(09-19-2024, 02:13 AM)SMcNeill Wrote: You have to remember, QB64 is a translator which turns BAS programs into C programs, and ... that's not always pretty. 

  1. As it has been said, the process of turning a pig into bacon, pork chops, sausage, pig's feet, lard, etc. is not pretty. Butchering a hog usually isn't.
  2. It has been said that if you have any respect for laws or sausage, you don't want to know the process of how either is made. Now I can probably change that to, "if you have any respect for laws, sausage, or how high-level programming languages are translated into C code, you don't want to know the process of how any of these are made."
  3. I've seen various articles on programming languages or their compilation, and what I've heard, whether it's Free Basic's assembly language, or QB64/QB64PE's C code, "you really do not want to see what the code they generate looks like."

(09-19-2024, 02:13 AM)SMcNeill Wrote: Just something to keep in mind, that most folks never consider.  It's behind the scene translation at work on your code.
Usually, for a high-level language programmer, you don't have to. It's been said that with most programming language compilers, it's not worth trying to improve your code by simplifying it, because the compiler already has improvement processes built into the compiler, like peephole optimization, loop unrolling, dead code elimination, expression simplification, etc., that there's not really that much you can do to provide a significant enough improvement to justify the time spent, and a better choice of thing to do for improvement is to see if there is a better algorithm for solving the problem your program is attempting to do than what you are using. Same for analyzing the assembly or machine code your program generates (or as in this case, C code), as most compiler writers either know the target instruction set (and operating system) very well, or they have people who do, and almost certainly better than you do.
While 1
   Fix Bugs
   report all bugs fixed
   receive bug report
end while
Reply


Messages In This Thread
RE: simplistic misunderstanding about ; + "" in a print - by TDarcos - 09-21-2024, 06:47 PM



Users browsing this thread: 4 Guest(s)