LWN.net Logo

Open-code?

Open-code?

Posted Dec 14, 2004 19:41 UTC (Tue) by Max.Hyre (subscriber, #1054)
In reply to: Quote of the week by iabervon
Parent article: Quote of the week

What does ``open-code'' mean in this context? So far, I've not run across anything that would fit this use.

Of course, I tried Google:
"open code" -"open source" -"free software",
but was swamped with Free-Software-ish links anyway. :-)


(Log in to post comments)

Open-code?

Posted Dec 14, 2004 21:06 UTC (Tue) by iabervon (subscriber, #722) [Link]

Write out the full code that the convenient syntax would stand for, so that you can apply some optimizations based on information the compiler wouldn't have. So rather than having a C++ virtual method or using a function pointer, you'd actually write out tests and calls for all of the functions it could be, because the time to call a function pointer would be significant.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds