diff options
Diffstat (limited to 'doc/faq.html')
| -rw-r--r-- | doc/faq.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/faq.html b/doc/faq.html index 6f62e1eb..f76308a1 100644 --- a/doc/faq.html +++ b/doc/faq.html | |||
| @@ -72,6 +72,7 @@ Search for: <a href="http://scholar.google.com/scholar?q=JIT+Compiler"><span cla | |||
| 72 | Search for: <a href="http://scholar.google.com/scholar?q=Dynamic+Language+Optimizations"><span class="ext">»</span> Dynamic Language Optimizations</a><br> | 72 | Search for: <a href="http://scholar.google.com/scholar?q=Dynamic+Language+Optimizations"><span class="ext">»</span> Dynamic Language Optimizations</a><br> |
| 73 | Search for: <a href="http://scholar.google.com/scholar?q=SSA+Form"><span class="ext">»</span> SSA Form</a><br> | 73 | Search for: <a href="http://scholar.google.com/scholar?q=SSA+Form"><span class="ext">»</span> SSA Form</a><br> |
| 74 | Search for: <a href="http://scholar.google.com/scholar?q=Linear+Scan+Register+Allocation"><span class="ext">»</span> Linear Scan Register Allocation</a><br> | 74 | Search for: <a href="http://scholar.google.com/scholar?q=Linear+Scan+Register+Allocation"><span class="ext">»</span> Linear Scan Register Allocation</a><br> |
| 75 | Here is a list of the <a href="http://article.gmane.org/gmane.comp.lang.lua.general/58908"><span class="ext">»</span> innovative features in LuaJIT</a>.<br> | ||
| 75 | And, you know, reading the source is of course the only way to enlightenment. :-) | 76 | And, you know, reading the source is of course the only way to enlightenment. :-) |
| 76 | </dd> | 77 | </dd> |
| 77 | </dl> | 78 | </dl> |
| @@ -87,6 +88,28 @@ vararg syntax</a>.</dd> | |||
| 87 | </dl> | 88 | </dl> |
| 88 | 89 | ||
| 89 | <dl> | 90 | <dl> |
| 91 | <dt>Q: Why do I get this error: "bad FPU precision"?<br> | ||
| 92 | <dt>Q: I get weird behavior after initializing Direct3D.<br> | ||
| 93 | <dt>Q: Some FPU operations crash after I load a Delphi DLL.<br> | ||
| 94 | </dt> | ||
| 95 | <dd> | ||
| 96 | |||
| 97 | DirectX/Direct3D (up to version 9) sets the x87 FPU to single-precision | ||
| 98 | mode by default. This violates the Windows ABI and interferes with the | ||
| 99 | operation of many programs — LuaJIT is affected, too. Please make | ||
| 100 | sure you always use the <tt>D3DCREATE_FPU_PRESERVE</tt> flag when | ||
| 101 | initializing Direct3D.<br> | ||
| 102 | |||
| 103 | Direct3D version 10 or higher do not show this behavior anymore. | ||
| 104 | Consider testing your application with older versions, too.<br> | ||
| 105 | |||
| 106 | Similarly, the Borland/Delphi runtime modifies the FPU control word and | ||
| 107 | enables FP exceptions. Of course this violates the Windows ABI, too. | ||
| 108 | Please check the Delphi docs for the Set8087CW method. | ||
| 109 | |||
| 110 | </dl> | ||
| 111 | |||
| 112 | <dl> | ||
| 90 | <dt>Q: Sometimes Ctrl-C fails to stop my Lua program. Why?</dt> | 113 | <dt>Q: Sometimes Ctrl-C fails to stop my Lua program. Why?</dt> |
| 91 | <dd>The interrupt signal handler sets a Lua debug hook. But this is | 114 | <dd>The interrupt signal handler sets a Lua debug hook. But this is |
| 92 | currently ignored by compiled code (this will eventually be fixed). If | 115 | currently ignored by compiled code (this will eventually be fixed). If |
