Embedded Systems Design - May 2011 (True PDF).pdf

(12436 KB) Pobierz
604600359 UNPDF
VOLUME 24,
NUMBER 4
MAY 2011
EMBEDDED SYSTEMS DESIGN
safety-critical
C coding
16
Unleash your
inner CPU, 28
Cracking
unreadable code
with style, 34
The Official Publication of The Embedded Systems Conferences and Embedded.com
Secrets of
604600359.132.png 604600359.143.png
Introducing ZYNQ, the new element in processing.
Finally, the processor comes together with the FPGA in a fully extensible
processing platform called Zynq. More intuitive to program in the way
you already know. Fully customizable to your requirements. Faster to
implement and get to market. As a software engineer, if you know ARM ® Cortex, you already
know Zynq. And if you know Xilinx, you already know this is innovation you can count on.
Visit us at www.xilinx.com
© Copyright 2011. Xilinx, Inc. XILINX, the Xilinx logo, Zynq, and other designated brands included herein are trademarks of Xilinx in the United States and other countries. All other trademarks are the property of their respective owners.
ARM is the registered trademark of ARM Limited in the EU and other countries. Cortex is the trademark of ARM Limited in the EU and other countries.
604600359.154.png 604600359.165.png 604600359.001.png 604600359.012.png 604600359.023.png 604600359.034.png 604600359.045.png 604600359.056.png 604600359.067.png 604600359.078.png 604600359.089.png 604600359.091.png 604600359.092.png 604600359.093.png 604600359.094.png 604600359.095.png 604600359.096.png 604600359.097.png 604600359.098.png 604600359.099.png 604600359.100.png 604600359.101.png 604600359.102.png 604600359.103.png 604600359.104.png 604600359.105.png 604600359.106.png 604600359.107.png 604600359.108.png 604600359.109.png 604600359.110.png 604600359.111.png 604600359.112.png 604600359.113.png 604600359.114.png 604600359.115.png 604600359.116.png 604600359.117.png 604600359.118.png 604600359.119.png 604600359.120.png 604600359.121.png 604600359.122.png 604600359.123.png 604600359.124.png 604600359.125.png 604600359.126.png 604600359.127.png 604600359.128.png 604600359.129.png 604600359.130.png 604600359.131.png 604600359.133.png 604600359.134.png 604600359.135.png 604600359.136.png 604600359.137.png 604600359.138.png 604600359.139.png 604600359.140.png 604600359.141.png 604600359.142.png 604600359.144.png 604600359.145.png 604600359.146.png 604600359.147.png 604600359.148.png 604600359.149.png 604600359.150.png 604600359.151.png 604600359.152.png 604600359.153.png 604600359.155.png 604600359.156.png 604600359.157.png 604600359.158.png 604600359.159.png 604600359.160.png 604600359.161.png 604600359.162.png 604600359.163.png 604600359.164.png 604600359.166.png 604600359.167.png 604600359.168.png 604600359.169.png 604600359.170.png 604600359.171.png 604600359.172.png 604600359.173.png 604600359.174.png 604600359.175.png 604600359.002.png 604600359.003.png 604600359.004.png 604600359.005.png 604600359.006.png 604600359.007.png 604600359.008.png 604600359.009.png 604600359.010.png 604600359.011.png 604600359.013.png 604600359.014.png 604600359.015.png 604600359.016.png 604600359.017.png 604600359.018.png 604600359.019.png 604600359.020.png 604600359.021.png 604600359.022.png 604600359.024.png 604600359.025.png 604600359.026.png 604600359.027.png 604600359.028.png 604600359.029.png 604600359.030.png 604600359.031.png 604600359.032.png 604600359.033.png 604600359.035.png 604600359.036.png 604600359.037.png 604600359.038.png 604600359.039.png 604600359.040.png 604600359.041.png 604600359.042.png 604600359.043.png 604600359.044.png 604600359.046.png 604600359.047.png 604600359.048.png 604600359.049.png 604600359.050.png 604600359.051.png 604600359.052.png 604600359.053.png 604600359.054.png 604600359.055.png 604600359.057.png 604600359.058.png 604600359.059.png 604600359.060.png 604600359.061.png 604600359.062.png 604600359.063.png 604600359.064.png 604600359.065.png 604600359.066.png 604600359.068.png 604600359.069.png 604600359.070.png 604600359.071.png 604600359.072.png 604600359.073.png 604600359.074.png 604600359.075.png
The INTEGRITY RTOS
®
Certified and Deployed Technology
The INTEGRITY RTOS is deployed and certified to:
Railway: EN 50128 SWSIL 4 , certified: 2010
Security: EAL6+ High Robustness , certified: 2008
Medical: FDA Class III , approved: 2007
Industrial: IEC 61508 SIL 3 , certified: 2006
Avionics: DO-178B Level A , certified: 2002
www.ghs.com
Copyright © 2011 Green Hills Software, Inc. Green Hills, the Green Hills logo and INTEGRITY are trademarks of Green Hills Software, Inc. in the U.S.and/or
internationally. All other trademarks are the property of their respective owners.
604600359.076.png 604600359.077.png 604600359.079.png
mouser.com
Find It Here. Faster.
The Newest Products for Your Newest Designs ®
Scan Here
Authorized distributor for the most advanced semiconductors
and electronic components.
Get What’s Next. Right now at mouser.com.
Mouser and Mouser Electronics are registered trademarks of Mouser Electronics, Inc.
m ouser . co m
604600359.080.png 604600359.081.png 604600359.082.png 604600359.083.png 604600359.084.png 604600359.085.png
THE OFFICIAL PUBLICATION OF THE EMBEDDED SYSTEMS CONFERENCES AND EMBEDDED.COM
EMBEDDED SYSTEMS DESIGN
COLUMNS
programming
pointers 11
Insights into member
initialization
BY DAN SAKS
Often when it seems that C++ is
generating bigger, slower code than C,
it may be that C++ is just distributing
generated code differently.
break points 46
A rumble, a wave, and
iPads dry up
BY JACK G. GANSSLE
The disaster in Japan makes you think
about the fundamental chemistry
behind all our modern smart devices.
VOLUME 24, NUMBER 4
MAY 2011
16
Cover Feature:
Seventeen steps to safer C code
BY THOMAS HONOLD
Here are 17 tips for writing safety-critical C code
using methods adapted from C++ and Ada.
DEPARTMENTS
#include 5
Languages and customs
BY RON WILSON
The multilingual culture of
embedded programming was
replaced by a stultifying sameness.
But from the ruins, a retrograde
movement has begun to stir.
parity bit 7
28
Why your embedded controller may not need
a CPU
BY MARK AINSWORTH
Mark Ainsworth of Cypress Semiconductor explains how you can
free up your CPU by making smart peripheral devices from a
combination of programmable logic devices and datapaths.
IN PERSON
ESC Silicon Valley May 2–5, 2011
http://esc-sv.techinsightsevents.com/
ESC Brazil— May 24–25, 2011
www.escbrazil.com.br/
ESC Chicago— June 6–8, 2011
http://esc-chicago.techinsightsevents.com/
ESC India— July 20–22, 2011
www.esc-india.com/
ESC Boston— September 26–29, 2011
http://esc-boston.techinsightsevents.com/
34
Adopting C programming conventions
BY JEAN J. LABROSSE
Gone is the Wild West era of programming. Today production
programmers have to follow the house style guide to get the job
done efficiently. This article from the author’s Embedded Systems
Conference course shows you some civilizing techniques.
EMBEDDED SYSTEMS DESIGN (ISSN 1558-2493) print; (ISSN 1558-2507 PDF-electronic) is published 10 times a year as follows: Jan/Feb, March, April, May, June,
July/August, Sept., Oct., Nov., Dec. by the EE Times Group, 600 Harrison Street, 5th floor, San Francisco, CA 94107, (415) 947-6000. Please direct advertising and editorial
inquiries to this address. SUBSCRIPTION RATE for the United States is $55 for 10 issues. Canadian/Mexican orders must be accompanied by payment in U.S. funds with addi-
tional postage of $6 per year. All other foreign subscriptions must be prepaid in U.S. funds with additional postage of $15 per year for surface mail and $40 per year for
airmail. POSTMASTER: Send all changes to EMBEDDED SYSTEMS DESIGN, EE Times/ESD, PO Box #3609, Northbrook, IL 60065-3257, embedsys@omeda.com. For cus-
tomer service, telephone toll-free (847) 559-7597. Please allow four to six weeks for change of address to take effect. Periodicals postage paid at San Francisco, CA and additional
mailing offices. EMBEDDED SYSTEMS DESIGN is a registered trademark owned by the parent company, EE Times Group. All material published in EMBEDDED SYSTEMS
DESIGN is copyright © 2010 by EE Times Group. All rights reserved. Reproduction of material appearing in EMBEDDED SYSTEMS DESIGN is forbidden without permission.
ONLINE
www.embedded.com
604600359.086.png 604600359.087.png 604600359.088.png 604600359.090.png
Zgłoś jeśli naruszono regulamin