MDN wants to learn about developers like you:

Xptcall Porting Status

What is this?

This is a status page for the multiplatform porting of xptcall. xptcall has a FAQ and a Porting Guide.

This is being maintained by John Bandhauer <>. Feel free to email me with questions or to volunteer to contribute xptcall code for any platform.

Mike Shaver <> is the best contact regarding 'nix (Unix, Linux, Finux, etc.) ports of xptcall.


Status Platform Contributors and ? Possible Contributors Notes
Done Win32 x86 Contributed code! John Bandhauer <> win32
Done Linux x86 Contributed code! John Bandhauer <>
Contributed code! Ulrich Drepper <>
Done FreeBSD and NetBSD x86 Contributed code! Christoph Toshok <>,
Contributed code! John Bandhauer <>
unix (same as Linux 86 code)
Done BSD/OS x86 Contributed code! Bert Driehuis <> unix (same as Linux 86 code) Bert contributed patches that *should* do the right thing for all the unixish-x86 versions of this code for GCC 2.7 or 2.8 vs. EGCS 1.1. He notes that the vtbl scheme is different. He is hoping that others will help test the changes using these two compilers on the various platforms where this same code is used. Bert's details
Done Mac PPC Contributed code! Roger Lawrence <>,
Contributed code! Patrick Beard <>
mac (passing tests and checked in)
Done Solaris Sparc Contributed code! Roger Lawrence <>,
Contributed code! Chris McAfee <>
unix This is checked in and working.
Done Solaris Sparc v9 (64bit) Contributed code! Stuart Parmenter <>,
Contributed code! Chris Seawood <>
unix This is checked in and (pavlov claims!) working.
Done OS/2 Contributed code! John Fairhurst <> I never heard exactly who did what. But mozilla has been working on OS/2 for a long time now.
Done OpenVMS Alpha Contributed code! Colin R. Blake <> Colin says this is passing all the tests on OpenVMS Alpha!
Done NT Alpha Contributed code! bob meader <> bob writes:
Enclosed is xptcall for alpha/nt target..

It is a variation of the IRIS port (only targeted for win32).

Notice the last 2 files (the change to mozilla\xpcom\build\ and mozilla\xpcom\build) are needed because I was unable to figure how to do a "declspecexport" from the assembler ASAXP ... if some knows how to do that then those last 2 files won't be needed.

I have had someone look over this code at (the entry point to compaq/gem compiler team) and this code was given the OK. I consider it "done".

This code lives in the files where the name includes 'alpha' in the win32 directory.

Done Linux ARM Started Stefan Hanske<>
? Matthew Wilcox <>
Stefan's code is checked in and he says it is working.
Done Linux Sparc Contributed code! Anton Blanchard <>,
Contributed code! Roger Lawrence <>,
Maybe Brandon Ehle <>
Anton contributed patches to Roger's Sparc code. Anton says it works and passes the tests! (24-Aug-1999) Brandon writes: I've finished testing XPTCALL Sparc Linux on 12 different Sparc machines and it checks out good.
Done Linux PPC Contributed code! Patrick Beard <>
Contributed code! Chris Waterson <>
Contributed code! Franz Sirl <>
? Jason Y. Sproul <>
? Sean Chitwood <>
waterson said: Mozilla runs on Linux/PPC
Done Linux Alpha Contributed code! Glen Nakamura <>
Contributed code! Dan Morril <>
Glen writes:

I am attaching a patch which contains my Linux Alpha xptcall code. It passes TestXPTCInvoke and TestXPC on my machine which runs kernel 2.2.7, glibc 2.1.1, and egcs 1.1.2. I have not tested it with older GNU compilers such as gcc 2.8.x. From looking at the Linux x86 code, I gather that the vtable layout is a little different for those compilers and the code will need minor modifications in order to work properly.

I am not sure how much of the code can be used for OpenVMS Alpha and/or Digital UNIX. Currently the code is dependent on the g++ name mangling convention and a few GNU extensions so I'm not sure how useful it will be for the other systems. Hopefully the comments in the code are detailed enough to help people attempting a port.


Done SunOS x86 Contributed code! Arthur Jones <>
? Philip Pokorny <>
The word I hear is that this is working and done
Done HP-UX Contributed code! Thomas Wang <>
Contributed code! Mike Gleeson <>
I hear that this code is checked in and working. Though, there is some doubt - see bug #17997
Done AIX PPC Contributed code! Jim Dunn <> Philip K. Warren writes:
We have gone through several releases of AIX without any problems.
Done Irix Contributed code! Jason Heirtzler <> Jason has declared this done. Jason is no longer working at SGI and will not be maintaining this code. There is some doubt as to whether or not this is working for everyone - see bug #10061. Mike Shaver <> is the interim maintainer until someone more suitable can be found.
Done BeOS x86 Contributed code! Duncan Wilcox <> unix (yet another reuse of the Linux 86 code!)
Duncan says this is all working. He did the code for old cfront style 'this' adjustment for others to use too!
Done Compaq Tru64 UNIX (Digital UNIX) Contributed code! Steve Streeter <> Code passes the tests and is checked in.
Working Neutrio x86 Contributed code! Jerry L. Kirk <> Patches for xptc*_unixish_x86.cpp checked in. Waiting for verification that this is really finished.
Investigating SCO UW7 and OSR5 Investigating J. Kean Johnston <>
Investigating Evan Hunt <>
Recent (Feb-2001) email from suggests that work will be occuring soon.
Works NetBSD/m68k Contributed code! Dave Huang <> Dave's changes are in the tree. Waiting for verification that it is really finished.
Partially Working NetBSD/arm32 Investigating Mike Pumford <> Mike writes:
I have started porting to the platform based on the code for Linux ARM. The InvokeByIndex code works correctly when used with TestXPTCInvoke. I am currently working on making TestXPC function correctly.

I am doing the porting work with egcs-1.1.2 on NetBSD 1.4P (NetBSD-current snapshot from a couple of days ago).

Done Linux ia64 Contributed code! HP
Contributed code! Ulrich Drepper <>
bug 40950 comment 15
HELP! All others! - -

Note: I've used the symbol (?) to indicate people who have expressed an interest in possibly contributing code. Just because these people are listed here does not mean that they have commited themselves to do the work. If you would like to contribute then let me know. Feel free to email these folks and offer to help or find out what's going on. We're all in this together.

Original Author: John Bandhauer, 3 Feb 1999.

Document Tags and Contributors

 Contributors to this page: teoli, TylerD
 Last updated by: TylerD,