luzr wrote on Thu, 11 June 2009 19:32 |
Well, looking through satistics, I think we should perhaps reintroduce mingw package. (Not that I like that... Anybody using mingw recently? What are actual versions working with U++? Mirek |
void BuildMethods::NewBuilder() { String b = ~builder; if(IsNull(speed_options)) { if(IsGccBuilder(b)) #ifdef PLATFORM_WIN32 speed_options <<= "-O3 -ffunction-sections"; #else speed_options <<= "-O3"; #endif else speed_options <<= "-O2"; }
if(HasFlag("SSE2")) cc << " -msse2 -mfpmath=sse";
if(HasFlag("SSE2")) cc << " -msse2 -mfpmath=sse";
Quote: |
I have put the little benchmark in Upp "Bombs" example and it worked well without and with -msse2 (with this it worked three times faster). |
bool Gdb::Create(One<Host> _host, const String& exefile, const String& cmdline) { host = _host; dbg = host->StartProcess("gdb " + GetHostPath(exefile)); if(!dbg) { Exclamation("Error invoking gdb !"); return false; }
One<Debugger> GdbCreate(One<Host> host, const String& exefile, const String& cmdline) { Gdb *dbg = new Gdb; if(!dbg->Create(host, exefile, cmdline)) { delete dbg; return NULL; } return dbg; }
void Ide::BuildAndDebug(bool runto) { ... #ifdef COMPILER_MSC debugger = builder == "GCC" ? GdbCreate(host, target, runarg) : PdbCreate(host, target, runarg); #else debugger = GdbCreate(host, target, runarg); #endif
Main Pack. Conf. Compiler Opt Test time Problems? - GUI SSE2 No option 2.3 sec Crash - GUI -msse2 2.4 sec Ok - GUI SSE2 -msse2 2.3 sec Crash - GUI -msse2 -mfpmath=sse 2.3 sec Ok - GUI SSE2 -msse2 -mfpmath=sse 2.3 sec Crash
if(HasFlag("SSE2")) cc << " -msse2";// -mfpmath=sse";
Main Pack. Conf. Compiler Opt Test time Problems? - GUI SSE2 No option 2.4 sec Crash
if(HasFlag("SSE2")) cc << " ";//-msse2";// -mfpmath=sse";
Main Pack. Conf. Compiler Opt Test time Problems? - GUI SSE2 No option 9.5 sec Ok
if(HasFlag("SSE2")) cc << " -msse2";// -mfpmath=sse";
Main Pack. Conf. Compiler Opt Test time Problems? - GUI SSE2 No option 2.4 sec Crash
if(HasFlag("SSE2")) cc << " ";//-msse2";// -mfpmath=sse";
Main Pack. Conf. Compiler Opt Test time Problems? - GUI SSE2 No option 9.5 sec Ok
-msse2 -mfpmath=sse
koldo wrote on Tue, 23 June 2009 16:55 |
Hello Ion Excuse me, I do not understand you very well After the tests I compile in "GUI" (not in "GUI SSE2") and for the end source if SSE2 code is included I include compiler options "-msse2 -mfpmath=sse" and "/arch:sse2". Best regards Koldo |
koldo wrote on Tue, 23 June 2009 16:55 |
Hello Ion Excuse me, I do not understand you very well After the tests I compile in "GUI" (not in "GUI SSE2") and for the end source if SSE2 code is included I include compiler options "-msse2 -mfpmath=sse" and "/arch:sse2". Best regards Koldo |
Quote: |
After the tests I compile in "GUI" (not in "GUI SSE2") and for the end source if SSE2 code is included I include compiler options "-msse2 -mfpmath=sse" and "/arch:sse2". |
ptDev wrote on Sun, 28 June 2009 09:50 |
It's true, and I found this annoying too. Especially considering it's just a 44kb dll. However, if one uses the '-static-libgcc' option, the dependency is removed. This is something to keep in mind. |
if(HasFlag("WIN32")) { cc << " -static-libgcc";
ptDev wrote on Sun, 28 June 2009 09:50 |
It's true, and I found this annoying too. Especially considering it's just a 44kb dll. However, if one uses the '-static-libgcc' option, the dependency is removed. This is something to keep in mind. |
if(HasFlag("WIN32")) { cc << " -static-libgcc";