Title: LUA16 cannot handle tables > 64K · Issue #7 · Lethja/lua-watcom · GitHub
Open Graph Title: LUA16 cannot handle tables > 64K · Issue #7 · Lethja/lua-watcom
X Title: LUA16 cannot handle tables > 64K · Issue #7 · Lethja/lua-watcom
Description: Problem: LUA16.EXE is compiled with -wl which specifies the large memory model, meaning pointer offsets will wrap around at 64KB. Trying to grow data structures, such as tables, to larger than 64KB will cause memory corruption. Reproduct...
Open Graph Description: Problem: LUA16.EXE is compiled with -wl which specifies the large memory model, meaning pointer offsets will wrap around at 64KB. Trying to grow data structures, such as tables, to larger than 64KB...
X Description: Problem: LUA16.EXE is compiled with -wl which specifies the large memory model, meaning pointer offsets will wrap around at 64KB. Trying to grow data structures, such as tables, to larger than 64KB...
Opengraph URL: https://github.com/Lethja/lua-watcom/issues/7
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"LUA16 cannot handle tables \u003e 64K","articleBody":"Problem:\n\nLUA16.EXE is compiled with `-wl` which specifies the large memory model, meaning pointer offsets will wrap around at 64KB. Trying to grow data structures, such as tables, to larger than 64KB will cause memory corruption.\n\nReproduction in LUA16.EXE,\n\n```\narr = {}\nfor i = 1, 10000 do arr[i] = i end\n```\n\nThis hangs LUA16.EXE, but works just fine in LUA4G.EXE and presumably in the other 32-bit builds as well.\n\nIf this is intended behavior it should be documented. Ideally, LUA16.EXE would be built for the huge memory model so data structures wouldn't have a 64KB size limit. I've tried doing this myself but ran into segment size issues; I'll post an update here if I get it working. Reporting it here so maybe someone else can get it working before I do.","author":{"url":"https://github.com/PeterFidelman","@type":"Person","name":"PeterFidelman"},"datePublished":"2025-12-28T09:20:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/7/lua-watcom/issues/7"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0dc20560-4846-de6d-675e-5b01cfcaa11d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B6A8:39857D:31CDA01:46F75EA:6A4BB193 |
| html-safe-nonce | 75d39785488c6cff32023a302868133c1b3d1c4c8a04c18303e2964b64b975bf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkE4OjM5ODU3RDozMUNEQTAxOjQ2Rjc1RUE6NkE0QkIxOTMiLCJ2aXNpdG9yX2lkIjoiMjc0MzcxNDk4MjY1ODgxNDM1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1d6a932c093910cf71a9c9de2c490d1dae3a01eb273773ec3a0e8a525b6f6d0d |
| hovercard-subject-tag | issue:3765493244 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Lethja/lua-watcom/7/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9b7091fdf281619c21e66c6e1924b951044a44a399ead3d561574a4d7c97816a/Lethja/lua-watcom/issues/7 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9b7091fdf281619c21e66c6e1924b951044a44a399ead3d561574a4d7c97816a/Lethja/lua-watcom/issues/7 |
| og:image:alt | Problem: LUA16.EXE is compiled with -wl which specifies the large memory model, meaning pointer offsets will wrap around at 64KB. Trying to grow data structures, such as tables, to larger than 64KB... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PeterFidelman |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3ede370c1d797b0693475db9bb4298020548dcae9c98a2f071d54aaf1b4e9faa |
| turbo-cache-control | no-preview |
| go-import | github.com/Lethja/lua-watcom git https://github.com/Lethja/lua-watcom.git |
| octolytics-dimension-user_id | 150316953 |
| octolytics-dimension-user_login | Lethja |
| octolytics-dimension-repository_id | 782510458 |
| octolytics-dimension-repository_nwo | Lethja/lua-watcom |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 782510458 |
| octolytics-dimension-repository_network_root_nwo | Lethja/lua-watcom |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | af627ba2b0ed5351c6d1b8e04fdbe893325c237f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width