Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Executable as DLL
Re: Executable as DLL [message #31393 is a reply to message #31391] Sun, 27 February 2011 19:45 Go to previous messageGo to previous message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
dolik.rce wrote on Sun, 27 February 2011 07:05

This is very interesting idea with a lot of potential...

I tried to get some more info about how to achive similar thing in Linux and I came to this article on gcc wiki. It suggests a way how to (platform independently) separate public API from internal stuff, which I think could help a lot with making this automated.

Honza


This should be even easier on Unix because we do not need export libraries. The only problem is how to export required symbols. GCC linker doesn't export anything by default. This situation can be reversed by using -Wl,-E option. In this case all symbols will be exported. But we do not need all of them because this can affect performance and loading time as mentioned in the article.
I checked this linker option with a simple console application and got 374088 versus 587080 bytes of executable size. -fvisibility=hidden option doesn't seem to affect size of executable. This is strange.


Regards,
Novo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TheIde SVN problem in windows 7
Next Topic: About Painter vs OpenGL
Goto Forum:
  


Current Time: Sat May 11 19:39:21 CEST 2024

Total time taken to generate the page: 0.02477 seconds