anza-xyz / sui

Sui, a next-generation smart contract platform with high throughput, low latency, and an asset-oriented programming model powered by the Move programming language
https://sui.io
Apache License 2.0
3 stars 3 forks source link

More support to dynamic field - Sui framework compilation #73

Closed jcivlin closed 4 months ago

jcivlin commented 4 months ago

With this change we are able to compile Sui-framework (with exception of generic (parametrized) entry points.

This should work:

debug/move-mv-llvm-compiler -c /home/sol/work/git/sui-solana-032024/crates/sui-framework/packages/sui-framework/tests/dynamic_field
_tests.move -p /home/sol/work/git/sui-solana-032024/crates/sui-framework/packages/sui-framework/Move.toml --test  -S -o ~/tmp/dynamic_field

And then:

ll ~/tmp/dynamic_field/
total 1060
drwxr-xr-x  2 sol users   4096 Jun 21 02:18 ./
drwxr-xr-x 49 sol users   4096 Jun  9 01:44 ../
-rw-r--r--  1 sol users   1460 Jun 21 02:18 0x1__address.ll
-rw-r--r--  1 sol users  31722 Jun 21 02:18 0x1__ascii.ll
-rw-r--r--  1 sol users   1303 Jun 21 02:18 0x1__bcs.ll
-rw-r--r--  1 sol users   1249 Jun 21 02:18 0x1__option.ll
-rw-r--r--  1 sol users  44366 Jun 21 02:18 0x1__string.ll
-rw-r--r--  1 sol users  49787 Jun 21 02:18 0x1__type_name.ll
-rw-r--r--  1 sol users   1304 Jun 21 02:18 0x1__unit_test.ll
-rw-r--r--  1 sol users   1705 Jun 21 02:18 0x1__vector.ll
-rw-r--r--  1 sol users  24106 Jun 21 02:18 0x2__address.ll
-rw-r--r--  1 sol users 197029 Jun 21 02:18 0x2__authenticator_state.ll
-rw-r--r--  1 sol users   6687 Jun 21 02:18 0x2__bag.ll
-rw-r--r--  1 sol users   1237 Jun 21 02:18 0x2__balance.ll
-rw-r--r--  1 sol users  17364 Jun 21 02:18 0x2__clock.ll
-rw-r--r--  1 sol users   1228 Jun 21 02:18 0x2__coin.ll
-rw-r--r--  1 sol users 146115 Jun 21 02:18 0x2__deny_list.ll
-rw-r--r--  1 sol users   1847 Jun 21 02:18 0x2__dynamic_field.ll
-rw-r--r--  1 sol users 130194 Jun 21 02:18 0x2__dynamic_field_tests.ll
-rw-r--r--  1 sol users   1271 Jun 21 02:18 0x2__dynamic_object_field.ll
-rw-r--r--  1 sol users  68009 Jun 21 02:18 0x2__hex.ll
-rw-r--r--  1 sol users  35973 Jun 21 02:18 0x2__math.ll
-rw-r--r--  1 sol users  19385 Jun 21 02:18 0x2__object.ll
-rw-r--r--  1 sol users  59555 Jun 21 02:18 0x2__random.ll
-rw-r--r--  1 sol users  40356 Jun 21 02:18 0x2__sui.ll
-rw-r--r--  1 sol users   1231 Jun 21 02:18 0x2__table.ll
-rw-r--r--  1 sol users  28441 Jun 21 02:18 0x2__test_scenario.ll
-rw-r--r--  1 sol users   1575 Jun 21 02:18 0x2__transfer.ll
-rw-r--r--  1 sol users  27675 Jun 21 02:18 0x2__tx_context.ll
-rw-r--r--  1 sol users   1292 Jun 21 02:18 0x2__types.ll
-rw-r--r--  1 sol users   4899 Jun 21 02:18 0x2__url.ll
-rw-r--r--  1 sol users   1237 Jun 21 02:18 0x2__vec_map.ll
-rw-r--r--  1 sol users   1237 Jun 21 02:18 0x2__vec_set.ll
-rw-r--r--  1 sol users   2225 Jun 21 02:18 0x2__versioned.ll
-rw-r--r--  1 sol users  33251 Jun 21 02:18 solana_entrypoint.ll
-rw-r--r--  1 sol users  18744 Jun 21 02:18 solana_entrypoint.o