forked from timfel/dosbox-svn
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only apply Asyncify to functions that really need it
This creates asyncify.txt from emterpretify.txt, with functions in the different format needed by ASYNCIFY_ONLY. It leads to a bunch of these warnings, because some functions get inlined: warning: Asyncify onlylist contained a non-matching pattern: That is okay and apparently unavoidable. The important thing is that no such warnings occur when the final link is done using -O0. ASYNCIFY_ADVISE has shown that a lot more would be processed by Asyncify without this. The performance penalty isn't too bad, and is much better than the Emterpreter. Maybe more extensive use of Asyncify could make more things work, but taking advantage of that would require code changes.
- Loading branch information
1 parent
af3aef2
commit 1896ca0
Showing
3 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,8 @@ else | |
# It is only required when using emterpreter. | ||
dosbox_LDFLAGS+=--memory-init-file 0 | ||
if ASYNCIFY | ||
dosbox_LDFLAGS+=-s ASYNCIFY=1 -s FETCH=1 | ||
dosbox_LDFLAGS+=-s ASYNCIFY=1 -s FETCH=1 -s [email protected] | ||
EXTRA_dosbox_DEPENDENCIES=asyncify.txt | ||
endif | ||
endif | ||
if WEBASSEMBLY | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[ | ||
"main", | ||
"SHELL_Init()", | ||
"DOS_ReadFile(unsigned short, unsigned char*, unsigned short*, bool)", | ||
"DOSBOX_RunMachine()", | ||
"CALLBACK_RunRealInt(unsigned char)", | ||
"CALLBACK_RunRealFar(unsigned short, unsigned short)", | ||
"CALLBACK_Idle()", | ||
"Normal_Loop()", | ||
"DOS_21Handler()", | ||
"PROGRAMS_Handler()", | ||
"device_CON::Read(unsigned char*, unsigned short*)", | ||
"device_CON::device_CON()", | ||
"DOS_Device::Read(unsigned char*, unsigned short*)", | ||
"MEM::Run()", | ||
"INTRO::Run()", | ||
"BOOT::Run()", | ||
"Config::StartUp()", | ||
"Config::Init()", | ||
"Section::ExecuteInit(bool)", | ||
"GUI_StartUp(Section*)", | ||
"DOS_Shell::InputCommand(char*)", | ||
"DOS_Shell::Run()", | ||
"DOS_Shell::Execute(char*, char*)", | ||
"DOS_Shell::DoCommand(char*)", | ||
"DOS_Shell::ParseLine(char*)", | ||
"DOS_Shell::CMD_HELP(char*)", | ||
"DOS_Shell::CMD_PAUSE(char*)", | ||
"DOS_Shell::CMD_CHOICE(char*)", | ||
"DOS_Shell::CMD_DIR(char*)", | ||
"DOS_Shell::CMD_TIME(char*)", | ||
"DOS_Shell::CMD_CLS(char*)", | ||
"DOS_Shell::CMD_DATE(char*)", | ||
"DOS_Shell::CMD_COPY(char*)", | ||
"Reboot_Handler()", | ||
"DOS_LoadKeyboardLayout(char const*, int, char const*)", | ||
"DOS_KeyboardLayout_Init(Section*)", | ||
"DOS_SwitchKeyboardLayout(char const*, int&)", | ||
"keyboard_layout::read_codepage_file(char const*, int)", | ||
"keyboard_layout::switch_keyboard_layout(char const*, keyboard_layout*&, int&)", | ||
"DOS_KeyboardLayout::DOS_KeyboardLayout(Section*)", | ||
"KEYB::Run()", | ||
"PIC_RunQueue()", | ||
"MAPPER_RunEvent(unsigned int)", | ||
"MAPPER_RunInternal()", | ||
"Pause_Loop()", | ||
"WGET::Run()" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters