mirror of
				https://github.com/bytecodealliance/wasm-micro-runtime.git
				synced 2025-10-31 05:11:19 +00:00 
			
		
		
		
	Collective fix: fix some typos (#4337)
This commit is contained in:
		
							parent
							
								
									97e9502bb3
								
							
						
					
					
						commit
						350af77b03
					
				|  | @ -21,7 +21,7 @@ WebAssembly Micro Runtime (WAMR) is a lightweight standalone WebAssembly (Wasm) | |||
| 
 | ||||
| ### Key features | ||||
| - Full compliant to the W3C Wasm MVP | ||||
| - Small runtime binary size (core vmlib on cortex-m4f with tail-call/bulk memroy/shared memroy support, text size from bloaty) | ||||
| - Small runtime binary size (core vmlib on cortex-m4f with tail-call/bulk memory/shared memory support, text size from bloaty) | ||||
|   * ~58.9K for fast interpreter | ||||
|   * ~56.3K for classic interpreter | ||||
|   * ~29.4K for aot runtime | ||||
|  |  | |||
|  | @ -4,6 +4,6 @@ WebAssembly [reference-types](https://github.com/WebAssembly/reference-types) pr | |||
| 
 | ||||
| WAMR has implemented the reference-types proposal. WAMR allows a native method to pass a host object to a WASM application as an `externref` parameter or receives a host object from a WASM application as an `externref` result. Internally, WAMR won't try to parse or dereference `externref`. It is an opaque type. | ||||
| 
 | ||||
| The restriction of using `externref` in a native method is the host object has to be the value of a `unintptr_t` variable. In other words, it takes **8 bytes** on 64-bit machine and **4 bytes** on 32-bit machines. Please keep that in mind especially when calling `wasm_runtime_call_wasm`. | ||||
| The restriction of using `externref` in a native method is the host object has to be the value of a `uintptr_t` variable. In other words, it takes **8 bytes** on 64-bit machine and **4 bytes** on 32-bit machines. Please keep that in mind especially when calling `wasm_runtime_call_wasm`. | ||||
| 
 | ||||
| Please ref to the [sample](../samples/ref-types) for more details. | ||||
|  |  | |||
|  | @ -112,12 +112,12 @@ def wasm_vec_to_list(vec): | |||
|         wasm_frame_vec_t, | ||||
|         wasm_extern_vec_t, | ||||
|     ] | ||||
|     known_vec_pointer_type = [POINTER(type) for type in known_vec_type] | ||||
|     known_vec_pointer_type = [POINTER(vec_type) for vec_type in known_vec_type] | ||||
| 
 | ||||
|     if any([isinstance(vec, type) for type in known_vec_pointer_type]): | ||||
|     if any([isinstance(vec, pointer_type) for pointer_type in known_vec_pointer_type]): | ||||
|         vec = dereference(vec) | ||||
|         return [vec.data[i] for i in range(vec.num_elems)] | ||||
|     elif any([isinstance(vec, type) for type in known_vec_type]): | ||||
|     elif any([isinstance(vec, vec_type) for vec_type in known_vec_type]): | ||||
|         return [vec.data[i] for i in range(vec.num_elems)] | ||||
|     else: | ||||
|         raise RuntimeError("not a known vector type") | ||||
|  | @ -405,7 +405,7 @@ def __compare_wasm_val_t(self, other): | |||
|     elif WASM_F32 == self.kind: | ||||
|         return self.of.f32 == other.of.f32 | ||||
|     elif WASM_F64 == self.kind: | ||||
|         return self.of.f64 == other.of.f63 | ||||
|         return self.of.f64 == other.of.f64 | ||||
|     elif WASM_EXTERNREF == self.kind: | ||||
|         raise RuntimeError("FIXME") | ||||
|     else: | ||||
|  |  | |||
|  | @ -121,7 +121,6 @@ def main(): | |||
|         print("\n================================") | ||||
|         print("Test address resolving") | ||||
|         cmd = "./iwasm --allow-resolve=*.com addr_resolve.wasm github.com" | ||||
|         cmd = "./multicast_server FF02:113D:6FDD:2C17:A643:FFE2:1BD1:3CD2" | ||||
|         run_cmd(cmd, args.working_directory) | ||||
| 
 | ||||
|         # wait for a second | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 TianlongLiang
						TianlongLiang