register class/function and code-bloat

yang solid <[email protected]> Thu, 24 Jan 2013 11:48:08 +0800
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <CALPGtdp6WaErXGEO-MtyEHuH3Zxk92WduR6E1JA7XJb8U+5DHA@mail.gmail.com>
I register a class like this:
module(L)[
class_<Vector3i>("Vector3i")
.def(constructor<>())
.def(constructor<int,int,int>())
.def(constructor<const Vector3i&>())
.def("get", &Vector3i::get)
.def("set", &Vector3i::set)
.def("Set", &Vector3i::Set)
.def("Zero", &zero<Vector3i>)
.def("Assign", &copy<Vector3i>)
.property("x", &Vector3i::getX, &Vector3i::setX)
.property("y", &Vector3i::getY, &Vector3i::setY)
.property("z", &Vector3i::getZ, &Vector3i::setZ)
];
The app's size compiled by Xcode, increased nearly 160k (release version).
But registered with tolua++, the size increased nearly 10k only. Code bloat
16 times! (code bloat nearly 4 times by MSVC).

Any idea to reduce code bloat?

Thanks!

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d

_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user