Writing code for portability
Download
1 / 8

Writing Code for Portability - PowerPoint PPT Presentation


  • 97 Views
  • Uploaded on

“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

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Writing Code for Portability' - pules


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
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
Why Portability? programs”

  • Re-use == Success

    • Predict the future?

  • OS / Free Software?

    • Source isnt enough

    • Project Life/cycle

    • Design Benefits

  • Example

    • Gcc

    • Egcs


Versions
Versions programs”

  • Track Stable/Current

    • Dual development

    • Migration plan

  • Kernel level changes

    • Low level == more pain

    • Always prefer APIs

  • System interfaces

    • POSIX

  • Libraries

  • Example

    • X11


Distributions
Distributions programs”

  • Glibc

    • Libc vs glibc ?

  • Standard Installs

    • Test, test test!

  • Packaging formats

    • Support rpm and deb

  • Library Hell

    • libcrypto.so.2

  • Example

    • Opera


Operating systems

Exploit runtime programs”

FreeBSD,NetBSD, OpenBSD

Java

POSIX

Test, test test!

Threads

Ugly mess; stick to process (!)

Interface Layer

ACE

Example

Apache

Operating Systems


Tools of the trade
Tools of the trade programs”

  • Gcc : GNU Compiler Collection

  • GNU tool chain

    • Autoconf

    • Automake

    • gmake

  • I18n / L10n

    • Challenge assumptions

  • Example

    • Perl


Gui toolkits
GUI toolkits programs”

  • Xlib library

  • GTK / KDE

    • Freedesktop.org

  • Cocoa

  • XUL

  • Motif, Qt

    • Commercial

  • Example

    • WxWindows


End of transmission
End of Transmission programs”

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/