Search found 1836 matches

by VANYA
Oct 30, 2023 8:11
Forum: Projects
Topic: IUP_FB_EDITOR (simple development environment)
Replies: 175
Views: 55029

Re: IUP_FB_EDITOR (simple development environment)

Update: 1) Fixed the parser, the entry from the bracket to AS without a space was not taken into account Function Foo()as long 2) Fixed a bug in the CreateProcess function. The second CMD parameter now includes the path to the compiler. This makes it possible to see the compiler even with spaces in ...
by VANYA
Oct 30, 2023 7:10
Forum: Libraries & Headers
Topic: GUI library for Windows \ Linux (window9)
Replies: 1050
Views: 270863

Re: GUI library for Windows \ Linux (window9)

Update library. Fixed functions: --FastCRC32 (ARM support) --FastCopy (ARM support) --LoadImageFromResource (loading errors with color and unnecessary memory release) --LoadImageFromResourceA (loading errors with color and unnecessary memory release) --Size_File (large size support) --Config functio...
by VANYA
Oct 12, 2023 5:16
Forum: Projects
Topic: IUP_FB_EDITOR (simple development environment)
Replies: 175
Views: 55029

Re: IUP_FB_EDITOR (simple development environment)

Update: 1) Improved dialogue performance: -----exit via ESC, ENTER -----in the FIND dialog, the ENTER key also works from the text field -----a parent is attached to some dialogues (to which it was not previously attached) 2) Added transition from the output window for errors in ASM files when compi...
by VANYA
Sep 27, 2023 10:58
Forum: Emscripten
Topic: What happened to the Emscripten branch?
Replies: 131
Views: 38446

Re: What happened to the Emscripten branch?

With this version of the compiler everything goes without problems:

https://disk.yandex.ru/d/Y8T52dgOt-vybw

P.S. I used Linux x86-64
by VANYA
Sep 25, 2023 3:07
Forum: Emscripten
Topic: What happened to the Emscripten branch?
Replies: 131
Views: 38446

Re: What happened to the Emscripten branch?

For this source file: Dim shared As long bDimMancala(13) Sub DrawNumbers() For i As Long = 0 To 5 bDimMancala(13 - i) = i next End Sub DrawNumbers() Generated code 1.08: typedef signed char int8; typedef unsigned char uint8; typedef signed short int16; typedef unsigned short uint16; typedef signed i...
by VANYA
Sep 25, 2023 3:01
Forum: Emscripten
Topic: What happened to the Emscripten branch?
Replies: 131
Views: 38446

Re: What happened to the Emscripten branch?

It turns out that I saved the previous compiler (1.08) in my archives. And there are no problems with him. Here is the difference in code generation: 1.09: fb_IntToStr( (int32)*(int8*)(((int64)(struct $8TMANCALA*)BDIMMANCALA$ + (-(int64)I$2 * 49ll)) + 637ll) ); 1.08: fb_IntToStr( (int32)*(int8*)(((u...
by VANYA
Sep 25, 2023 2:29
Forum: Emscripten
Topic: What happened to the Emscripten branch?
Replies: 131
Views: 38446

Re: What happened to the Emscripten branch?

Ok, I found a possible workaround: Add the option -Wl "-s WASM=0" to the command line So: fbc -target js-asmjs mancala.bas -Wl "-s ASYNCIFY=1" -Wl "-s WASM=0" -Wl --preload-file,res It won't produce WASM code, but only JavaScript code. It seems to work fine, in that wa...
by VANYA
Sep 22, 2023 6:05
Forum: Emscripten
Topic: What happened to the Emscripten branch?
Replies: 131
Views: 38446

Re: What happened to the Emscripten branch?

that should be equivalent (the only difference is that the array is shared) crashes. Can you confirm it?
yes.
by VANYA
Sep 21, 2023 3:32
Forum: Emscripten
Topic: What happened to the Emscripten branch?
Replies: 131
Views: 38446

Re: What happened to the Emscripten branch?

clang does not support getting the address of line numbers. That is, commands like Resume Next will not work. Thank you for the clarification! Also, I have a question: does the INPUT work in graphic mode, compiled with ASYNCIFY? work. I don't know why, since it seems legit C syntax Here is a minima...
by VANYA
Sep 20, 2023 3:42
Forum: Emscripten
Topic: What happened to the Emscripten branch?
Replies: 131
Views: 38446

Re: What happened to the Emscripten branch?

If you compile under a regular gcc backend, the compiler first forcibly creates a temporary variable in which it performs the calculation in parentheses. And then this variable is placed in brackets. But for the Emscripten backend, the compiler does not do this and substitutes numbers. Perhaps this ...
by VANYA
Sep 19, 2023 4:12
Forum: Libraries & Headers
Topic: GUI library for Windows \ Linux (window9)
Replies: 1050
Views: 270863

Re: GUI library for Windows \ Linux (window9)

Hi RNBW!
I hope you are keeping well.
Thanks, seems fine so far.
Managed to resolve the problem from an earlier topic
Ok.
by VANYA
Sep 19, 2023 4:10
Forum: Emscripten
Topic: What happened to the Emscripten branch?
Replies: 131
Views: 38446

Re: What happened to the Emscripten branch?

Where is the file mancala.bas? In the archive I found only the files mancala(32-bit).bas and mancala(64-bit).bas , and they both are unusable, since they contain some ASM code. Also, can you still compile it if you use an older version of FreeBasic? Because I wonder if the change happened in FreeBa...
by VANYA
Sep 18, 2023 10:04
Forum: Emscripten
Topic: What happened to the Emscripten branch?
Replies: 131
Views: 38446

Re: What happened to the Emscripten branch?

I don't know what's the matter. But it doesn't work like this: For i As Long = 0 To 5 s = Str(bDimMancala(i+1).bValue) Var s2 = Str(bDimMancala(13-i).bValue) .... Next And this is how it works: For i As Long = 0 To 5 dim as long iOffset1 , iOffset2 iOffset1 = i+1 iOffset2 = 13 - i s = Str(bDimMancal...
by VANYA
Sep 18, 2023 8:33
Forum: Emscripten
Topic: What happened to the Emscripten branch?
Replies: 131
Views: 38446

Re: What happened to the Emscripten branch?

The problem is with the array index, which for some reason seems to be out of bounds. But I looked at the code bas and it seems to me that everything is fine there. Could there be an error in the conversion to Emscripten code?
by VANYA
Sep 18, 2023 7:26
Forum: Emscripten
Topic: What happened to the Emscripten branch?
Replies: 131
Views: 38446

Re: What happened to the Emscripten branch?

Hi all! I decided to change one program. I assembled it without errors, but got an exception in the browser. In the console the following: GET http://localhost:8000/favicon.ico [HTTP/1 404 File not found 0ms] wasm streaming compile failed: TypeError: WebAssembly: Response has unsupported MIME type '...