Home » Community » U++ community news and announcements » theide/umk support for .lib/.a generation
Re: theide/umk support for .lib/.a generation [message #55576 is a reply to message #55571] |
Sun, 22 November 2020 20:24 |
|
Klugier
Messages: 1077 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello Mirek,
That's great news!
Quote:
Now the hard part is to decide how to "parcel" the U++ into libraries. I am also afraid there will have to be like 12 versions of each library:
- USEMALLOC (not using U++ allocator)
- STDNEW (using standard new/delete, but U++ allocator where possible)
- with upp allocator
- Debug
- Release
- Linked with dynamic CRT
- Linked with static CRT
My point of view here is simple - the less variants we provide the better. In case of allocator I would choose only one option in context of .lib. Upp allocator should be exclusive for upp as a platform. So, I opt that we should use STDNEW only. Very good performance on library level, but user space is untouched. I think this is what most users want and do not create headache what option should be choose. In the very first version we could go with USEMALLOCK only.
In initial version we should only limit to RELEASE. In context of DEBUG works properly there is a need to distribute sources as well. In the first version the debugging of upp library should be only reserved to platform (TheIDE). I think initially there will not be many requests to add support for debug mode.
Providing CRT should be application responsibility. So, probably dynamic option is fine for us at least at the beginning. Mirek, do you see any objections difficulties here? The problem with static is that sometimes the CRT runtime is LGPL (Linux), so if we would like to go that path then we will need to make sure that we will do not link with libraries with that kind of license. I know that there is clang library that has BSD license. Anyway, this adds additional point of complexity, so initially I would focus only on dynamic version.
So, backing to math we could create only one variant instead of 12 and make whole solution simple This will also allow us to see how market will response and tune up in the future. KISS
---------------------------
In context of includes - will include works like this:
#include <Upp/CtrlLib/CtrlLib.h>
or do you plan to
#include <CtrlLib/CtrlLib.h>
I know that people might have objections for the second variant, so we should avoid it.
Klugier
U++ - one framework to rule them all.
[Updated on: Sun, 22 November 2020 20:25] Report message to a moderator
|
|
|
|
|
theide/umk support for .lib/.a generation
By: mirek on Sun, 22 November 2020 17:45
|
|
|
Re: theide/umk support for .lib/.a generation
By: Klugier on Sun, 22 November 2020 20:24
|
|
|
Re: theide/umk support for .lib/.a generation
By: mirek on Sun, 22 November 2020 20:31
|
|
|
Re: theide/umk support for .lib/.a generation
By: Klugier on Sun, 22 November 2020 21:56
|
|
|
Re: theide/umk support for .lib/.a generation
By: Novo on Sun, 22 November 2020 22:10
|
|
|
Re: theide/umk support for .lib/.a generation
By: Novo on Sun, 22 November 2020 23:33
|
|
|
Re: theide/umk support for .lib/.a generation
By: Novo on Sun, 22 November 2020 21:50
|
|
|
Re: theide/umk support for .lib/.a generation
By: mirek on Mon, 23 November 2020 00:13
|
|
|
Re: theide/umk support for .lib/.a generation
By: Klugier on Mon, 23 November 2020 01:30
|
|
|
Re: theide/umk support for .lib/.a generation
By: mirek on Mon, 23 November 2020 09:28
|
|
|
Re: theide/umk support for .lib/.a generation
By: Klugier on Mon, 23 November 2020 23:10
|
|
|
Re: theide/umk support for .lib/.a generation
By: Novo on Mon, 23 November 2020 03:36
|
Goto Forum:
Current Time: Mon Jun 10 09:09:38 CEST 2024
Total time taken to generate the page: 0.02205 seconds
|