> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[email protected]] On Behalf Of Howard Brazee
> Sent: Thursday, August 12, 2010 9:31 AM
> To: [email protected]
> Subject: Re: basic questions about machine instructions
> 
> On 12 Aug 2010 06:35:34 -0700, [email protected] (McKown,
> John) wrote:
> 
> >So the programmers don't even need to understand machine 
> architecture any more. 
> >Unfortunately, this leads them to write poorly performing 
> code due to a total lack of 
> >understanding of even basic knowledge of "how it really 
> works". In some C code, 
> >I have actually seen for loops moving data from one char * 
> to another char *, 
> >instead of using strncpy(). Or doing it with subscripts 
> instead of pointers! 
> >"for (i=0;src[i];i++) {dst[i]=src[i];}"
> 
> Are there optimizers for library languages such as C?    Or isn't that
> considered important anymore?

There are optimizers. But even if that code can be optimized, it is still an 
example of bad programming, IMO. 

--
John McKown 
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * (817)-691-6183 cell
[email protected] * www.HealthMarkets.com

Confidentiality Notice: This e-mail message may contain confidential or 
proprietary information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
HealthMarkets(r) is the brand name for products underwritten and issued by the 
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance 
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The 
MEGA Life and Health Insurance Company.SM

 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to