mirror of
https://github.com/wiiu-env/MemoryMappingModule.git
synced 2024-11-25 19:26:54 +01:00
Reduce the filesize by avoid "new" and any exceptions
This commit is contained in:
parent
11d467e1c9
commit
88f4e0af29
2
Makefile
2
Makefile
@ -33,7 +33,7 @@ CFLAGS := -g -Wall -O2 -ffunction-sections\
|
|||||||
|
|
||||||
CFLAGS += $(INCLUDE) -D__WIIU__ -D__WUT__
|
CFLAGS += $(INCLUDE) -D__WIIU__ -D__WUT__
|
||||||
|
|
||||||
CXXFLAGS := $(CFLAGS) -std=c++17
|
CXXFLAGS := $(CFLAGS) -std=c++17 -fno-exceptions -fno-rtti
|
||||||
|
|
||||||
ASFLAGS := -g $(ARCH)
|
ASFLAGS := -g $(ARCH)
|
||||||
LDFLAGS = -g $(ARCH) $(RPXSPECS) -Wl,-Map,$(notdir $*.map) -T$(WUMS_ROOT)/share/libkernel.ld -T$(WUMS_ROOT)/share/libfunctionpatcher.ld $(WUMSSPECS)
|
LDFLAGS = -g $(ARCH) $(RPXSPECS) -Wl,-Map,$(notdir $*.map) -T$(WUMS_ROOT)/share/libkernel.ld -T$(WUMS_ROOT)/share/libfunctionpatcher.ld $(WUMSSPECS)
|
||||||
|
@ -17,9 +17,8 @@ void runOnAllCores(CThread::Callback callback, void *callbackArg, int32_t iAttr
|
|||||||
int32_t aff[] = {CThread::eAttributeAffCore2, CThread::eAttributeAffCore1, CThread::eAttributeAffCore0};
|
int32_t aff[] = {CThread::eAttributeAffCore2, CThread::eAttributeAffCore1, CThread::eAttributeAffCore0};
|
||||||
|
|
||||||
for (int i: aff) {
|
for (int i: aff) {
|
||||||
CThread *thread = CThread::create(callback, callbackArg, iAttr | i, iPriority, iStackSize);
|
CThread thread(iAttr | i, iPriority, iStackSize, callback, callbackArg);
|
||||||
thread->resumeThread();
|
thread.resumeThread();
|
||||||
delete thread;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user