1 / 8

Writing Code for Portability

“Portability is for people who cannot write new programs” Linus Torvalds Madhu M Kurup technical yahoo! Yahoo! Inc. mmk at yahoo dash inc dot com. Writing Code for Portability. Why Portability?. Re-use == Success Predict the future? OS / Free Software? Source isnt enough

pules
Download Presentation

Writing Code for Portability

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. “Portability is for people who cannot write new programs” Linus Torvalds Madhu M Kurup technical yahoo! Yahoo! Inc. mmk at yahoo dash inc dot com Writing Code for Portability

  2. Why Portability? • Re-use == Success • Predict the future? • OS / Free Software? • Source isnt enough • Project Life/cycle • Design Benefits • Example • Gcc • Egcs

  3. Versions • Track Stable/Current • Dual development • Migration plan • Kernel level changes • Low level == more pain • Always prefer APIs • System interfaces • POSIX • Libraries • Example • X11

  4. Distributions • Glibc • Libc vs glibc ? • Standard Installs • Test, test test! • Packaging formats • Support rpm and deb • Library Hell • libcrypto.so.2 • Example • Opera

  5. Exploit runtime FreeBSD,NetBSD, OpenBSD Java POSIX Test, test test! Threads Ugly mess; stick to process (!) Interface Layer ACE Example Apache Operating Systems

  6. Tools of the trade • Gcc : GNU Compiler Collection • GNU tool chain • Autoconf • Automake • gmake • I18n / L10n • Challenge assumptions • Example • Perl

  7. GUI toolkits • Xlib library • GTK / KDE • Freedesktop.org • Cocoa • XUL • Motif, Qt • Commercial • Example • WxWindows

  8. End of Transmission Thanks; Questions? Useful References The Practice of Programming by Brian W. Kernighan and Rob Pike. LSB http://www.linuxbase.org FHS http://www.pathname.com/fhs/ ACE Based http://www.cs.wustl.edu/~schmidt/ACE.html Mozilla XUL http://books.mozdev.org/chapters/index.html Wxwindows http://www.wxwindows.org/whychoos.htm Posix FAQ http://www.opengroup.org/austin/papers/posix_faq.html http://ooextras.sourceforge.net/

More Related