Writing code for portability
This presentation is the property of its rightful owner.
Sponsored Links
1 / 8

Writing Code for Portability PowerPoint PPT Presentation


  • 63 Views
  • Uploaded on
  • Presentation posted in: General

“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

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.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?

  • Re-use == Success

    • Predict the future?

  • OS / Free Software?

    • Source isnt enough

    • Project Life/cycle

    • Design Benefits

  • Example

    • Gcc

    • Egcs


Versions

Versions

  • 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

  • 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

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

  • Gcc : GNU Compiler Collection

  • GNU tool chain

    • Autoconf

    • Automake

    • gmake

  • I18n / L10n

    • Challenge assumptions

  • Example

    • Perl


Gui toolkits

GUI toolkits

  • Xlib library

  • GTK / KDE

    • Freedesktop.org

  • Cocoa

  • XUL

  • Motif, Qt

    • Commercial

  • Example

    • WxWindows


End of transmission

End of Transmission

Thanks; Questions?

Useful References

The Practice of Programming by Brian W. Kernighan and Rob Pike.

LSBhttp://www.linuxbase.org

FHShttp://www.pathname.com/fhs/

ACEBasedhttp://www.cs.wustl.edu/~schmidt/ACE.html

Mozilla XULhttp://books.mozdev.org/chapters/index.html

Wxwindowshttp://www.wxwindows.org/whychoos.htm

Posix FAQ http://www.opengroup.org/austin/papers/posix_faq.html

http://ooextras.sourceforge.net/


  • Login