Displaying 20 results from an estimated 1000 matches similar to: "Wasm, start function, and default globals"
2020 Aug 10
2
(wasm-ld) Any fundamental problems with linking a shared wasm library statically?
wasm-ld is currently unable to link a shared wasm library (generated with
`wasm-ld --shared`) with .o files and produce a working executable.
I'm curious if there's a fundamental reason for this, or is this simply
something that wasn't needed and could be implemented if needed.
I think this could be done by
- Resolving "GOT.mem" and "GOT.func" imports and
2019 May 08
2
Where to send emails with questions about WebAssembly?
Okay, so where should I send questions for WebAssembly? Is it this mailing list or a different one? I want to ask about how to compile WebAssembly modules with Clang directly, without Emscripten, for situations like what I have currently where I have a problem with generating WebAssembly and/or JavaScript glue code (I have a problem with the gen_struct_info stuff; I asked on the Emscripten
2017 Jun 30
3
[LLD] Adding WebAssembly support to lld
Hi llvmers,
As you may know, work has been progressing on the experimental
WebAssembly backend in llvm. However, there is currently not a good
linking story. Most the of existing linking strategies (i.e. those in
the emscripten toolchain) involve bitcode linking and whole program
compilation at link time.
To improve this situation I've been working on adding a wasm backend
for lld. My
2017 Jul 01
1
[LLD] Adding WebAssembly support to lld
Can you link to docs about the wasm object format? (both relocatable and
executable)
Also, traditional object file linkers are primarily concerned with
concatenating binary blobs with small amount of patching of said binary
blobs based on computed virtual (memory) addresses. Or perhaps to put it
another way, what traditional object file linkers do is construct program
images meant to be mapped
2020 Aug 05
2
Debugging a potential bug when generating wasm32
Hi,
Sorry if you've seen this message before on llvm.discourse.group or elsewhere --
I've been trying to get to the bottom of this for a while now and asked about
this in a few different platforms before.
I'm currently trying to debug a bug in a LLVM-generated Wasm code. The bug could
be in the code that generates LLVM (rustc) or in the LLVM, I'm not sure yet.
LLVM IR and Wasm
2018 Nov 17
2
Generating exported wasm functions
Using LLVM v5, my Cone compiler (https://github.com/jondgoodwin/cone)
automatically directly generated all functions as named and exported for
both wasm text and binary files (not using clang/lld etc, but using the
API).
Upgrading to LLVM v7, generated wasm object files now fail, exhibiting
markedly different behavior, behavior that varies between the text and
binary files. For example, the
2017 Jul 01
2
[LLD] Adding WebAssembly support to lld
Hi Sam,
First, I want to know the symbol resolution semantics. I can imagine that
that is set in stone yet, but just that you guys are still discussing what
would be the best semantics or file format for the linkable wasm object
file. I think by knowing more about the format and semantics, we can give
you guys valuable feedback, as we've been actively working on the linker
for a few years
2017 Jul 06
3
[LLD] Adding WebAssembly support to lld
Dan Gohman <sunfish at mozilla.com> writes:
>> Sorry, I meant why that didn't work with ELF (or what else didn't).
>>
>
> The standard executable WebAssembly format does not use ELF, for numerous
> reasons, most visibly that ELF is designed for sparse decoding -- headers
> contain offsets to arbitrary points in the file, while WebAssembly's format
> is
2017 Jul 04
2
[LLD] Adding WebAssembly support to lld
Sean Silva <chisophugis at gmail.com> writes:
> On Mon, Jul 3, 2017 at 11:12 AM, Rafael Avila de Espindola <
> rafael.espindola at gmail.com> wrote:
>
>> Sam Clegg via llvm-dev <llvm-dev at lists.llvm.org> writes:
>>
>> >> Can you elaborate on semantically what the linker is actually doing for
>> >> wasm?
>> >
>> >
2017 Jul 12
2
[LLD] Adding WebAssembly support to lld
On Mon, Jul 10, 2017 at 4:13 PM, Rui Ueyama via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Sorry for the belated response. I was on vacation last week. A couple of
> thoughts on this patch and the story of webassembly linking.
And I'm about to be on (mostly) vacation for next 3 weeks :)
>
> - This patch adds a wasm support as yet another major architecture besides
>
2017 Jan 03
2
LLVM WebAssembly target
Hello.
Excuse me.
Why CMakeLists.txt from llvm-3.9.1.src does not contain WebAssembly target?
So, it is like
set(LLVM_ALL_TARGETS
AArch64
AMDGPU
ARM
BPF
Hexagon
Mips
MSP430
NVPTX
PowerPC
Sparc
SystemZ
X86
XCore
)
but not like
set(LLVM_ALL_TARGETS
AArch64
AMDGPU
ARM
BPF
Hexagon
Mips
MSP430
NVPTX
PowerPC
Sparc
SystemZ
Webassembly
X86
2020 Aug 31
3
Inlining with different target features
David,
That's right, WebAssembly does not have a way to conditionally use a
feature or even do runtime feature testing right now. It's on our roadmap
of things to design and standardize, but it is still a long way off.
> Another direction would be to require the features to be specified
consistently for all components of the build, I guess - if that's the net
effect anyway. Would
2019 Nov 26
2
Thoughts on the LLVM linker
Hi,
I am using LLVM as the backend in a small hobby compiler project I'm
working on. I plan to support all platforms that LLVM supports (limited by
my available hardware only).
As far as I can tell, there are different linkers for the various host
systems out there (the output of 'lld' if you invoke it on Arch Linux):
lld is a generic driver.
Invoke ld.lld (Unix), ld64.lld
2019 Feb 20
2
Compile R to WebAssembly / Emscripten?
Has anyone attempted to compile R (probably without any OS bindings) to
WebAssembly / Emscripten? If so, how far did you get? (would be crazy
awesome if you could get all the way to a ggplot bitmap output). If not, is
this a waste of time or is there some daylight to doing this?
[[alternative HTML version deleted]]
2018 Nov 02
3
WebAssembly Opus Decoder
If anyone is integrating Opus audio into a web or JavaScript application, I
wrote a WebAssembly Opus decoder that uses libopusfile to decode Opus files
in chunks using the JavaScript Streams API. This decoder can begin
decoding after receiving the Opus headers and first audio data page:
https://github.com/AnthumChris/opus-stream-decoder
All thoughts and contributions are welcome, and I'm
2020 Aug 17
4
Inlining with different target features
Hi llvm-dev,
I recently updated the WebAssembly TargetTransformInfo to allow functions
with different target feature sets to be inlined into each other, but I ran
into an issue I want to get the community's opinion on.
Since WebAssembly modules have to be validated before they are run, it only
makes sense to talk about WebAssembly features at module granularity rather
than function
2018 May 08
2
"opus will be very slow" message
I get the following message when cross compiling Opus 1.2.1 for android
with clang in a standalone build.
CC src/opus_decoder.lo
src/opus_decoder.c:37:10: warning: You appear to be compiling without
optimization, if so opus will be very slow. [-W#pragma-messages]
# pragma message "You appear to be compiling without optimization, if so
opus will be very slow."
Looking at the
2019 Jan 07
2
[LLD] [WASM] wasm/function-index.test failing
I'm seeing the following fail on Linux x86-64, for the last couple weeks
at least. This is from 'ninja check-all'.
-David
FAIL: lld :: wasm/function-index.test (1941 of 1955)
******************** TEST 'lld :: wasm/function-index.test' FAILED ********************
Script:
--
: 'RUN: at line 1'; /build/x86_64/bin/llc -filetype=obj
2018 Sep 19
10
WebAssembly into normal Target?
Hi All,
WebAssembly has been around for a while now, it's still being actively
worked on and used. I think it's long past time we make it a normal target
so that it gets tested on a regular basis. (Most recent random breakage is
https://reviews.llvm.org/rL342576 which fails make check with web assembly
enabled).
Any objections? I'll probably do this next week unless someone raises a
2019 Feb 26
1
Compile R to WebAssembly / Emscripten?
As I recall, the major blocker is that R links against a number of other
things (notably BLAS, pcre, etc) so while technically possible (?) I
suppose, the universe of things you'd have to compile over and then get
working is much larger than just the R internals.
I think most people who consider this (including me years ago, as well as
the poster of Gabor's message to rdevel) hit that