Search found 1046 matches

by SARG
Jun 02, 2020 11:49
Forum: Community Discussion
Topic: native At&t Assembly emitter
Replies: 14
Views: 320

Re: native At&t Assembly emitter

@systemctl Sorry for your eyes. However you should know what the OP wants to do and read carefully what I wrote before a such reply. I hope Julcar will reply. Julcar wants to generate directly asm code with ATT syntax then use TCC to compile the asm file. So my question what is the interest not usin...
by SARG
Jun 02, 2020 8:45
Forum: Community Discussion
Topic: native At&t Assembly emitter
Replies: 14
Views: 320

Re: native At&t Assembly emitter

Some years ago there was an attempt to generate asm with ATT syntax : https://www.freebasic.net/forum/viewtopic.php?f=17&t=16742 But the project is dead : https://sourceforge.net/p/fbc/patches/22/ A translator is possible, see AT&T Syntax versus Intel Syntax : http://staffwww.fullcoll.edu/ac...
by SARG
Jun 01, 2020 15:57
Forum: General
Topic: Start a program just one time
Replies: 59
Views: 1129

Re: Start a program just one time

@dodicat
As far as I know that's the way to do
I was also surprised when I began to code gas64 for linux.
by SARG
Jun 01, 2020 15:33
Forum: General
Topic: Start a program just one time
Replies: 59
Views: 1129

Re: Start a program just one time

Improving the semaphore method could easily allow to count the number of running instances.
Basically counting is the purpose of the semaphore.
I'll try that.
by SARG
Jun 01, 2020 10:32
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 275
Views: 30908

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

Good catch. Thank you dodicat.
Again weird that this sort of bug can succesfully passe through a lot of tests.
Memory clearing of 1, 2, 4, 8 bits inside a structure......

Fixed, I'll check the same for memory copy and then a new version to come.
by SARG
Jun 01, 2020 8:18
Forum: General
Topic: Start a program just one time
Replies: 59
Views: 1129

Re: Start a program just one time

@deltarho
Come, there is enough room on the highest march of the podium for two. :-)

@dodicat
the code should be integrated in your own code not for external use.
by SARG
May 31, 2020 22:12
Forum: General
Topic: Start a program just one time
Replies: 59
Views: 1129

Re: Start a program just one time

@deltarho
No problem. "Good" code should be shared. ;-)
Put the link and I'm going to read it.
by SARG
May 31, 2020 21:44
Forum: General
Topic: Emitting assembler with FBC, compilling and linking with TCC
Replies: 5
Views: 154

Re: Emitting assembler with FBC, compilling and linking with TCC

I found the same information. And I don't think there is a way to supress the underscore.

To go forward I suggest to manually remove it and test with the modified files to see if all goes well.
by SARG
May 31, 2020 21:32
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 275
Views: 30908

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

@dodicat No no :-) deltarho reported a bug with gas64 when he tried to compile your code. Nothing more. The bug is now fixed (a typo). @all By the way there are still bugs as gas64 can't self compile twice but all the tests (from test suite) are passed with succes. So for helping, imagine complex co...
by SARG
May 31, 2020 8:16
Forum: General
Topic: Emitting assembler with FBC, compilling and linking with TCC
Replies: 5
Views: 154

Re: Emitting assembler with FBC, compilling and linking with TCC

You must use -m option to define the entry point : -m <file name without extension>
Look at help file -m / -rr

Code: Select all

FBC -rr -RR test.bas -m test
by SARG
May 30, 2020 20:22
Forum: General
Topic: Start a program just one time
Replies: 59
Views: 1129

Re: Start a program just one time

jj2007 wrote:@Sarg: without ReleaseSemaphore, you risk having a different functionality
Just curious what risk ?
Here the semaphore is no more than a flag (not a counter) and it's destroyed when exiting properly the program or if there is a crash.
by SARG
May 30, 2020 7:47
Forum: General
Topic: Start a program just one time
Replies: 59
Views: 1129

Re: Start a program just one time

In a same way that jj2007's one. What I use in fbdebugger : 'To avoid multiple launching If CreateSemaphore(0, 0, 1,"FBdebugger" )<>0 And GetLastError() = ERROR_ALREADY_EXISTS Then If fb_message("Starting FBdebugger","An other occurence is already running."+Chr(13)+&quo...
by SARG
May 27, 2020 22:51
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 275
Views: 30908

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

@srvaldez,deltarho Thank you for your reports Since several days I was hunting 2 fuc...ng bugs after self compiling, hence my late reply. It remains this one : for i as integer =1 to 5 step 2 --> null pointer error for i as integer =1 to variable step 2 --> ok @srvaldez Bug with printf due to variad...
by SARG
May 22, 2020 7:51
Forum: Windows
Topic: FB builds using gcc 7.5, 8.4 and 9.3
Replies: 29
Views: 796

Re: FB builds using gcc 7.5, 8.4 and 9.3

@dodicat, robert Thank you for the help :-) @deltarho No need to read all the pages. Use fbc64_gas64 as regular fbc. Fbc64_gas64 generates asm code but all the upstream of the compilation stays unchanged. By the way no need -gen gas64 it's set by default. See it like fbc under 32bit. 'as' is the ass...
by SARG
May 21, 2020 20:36
Forum: Windows
Topic: FB builds using gcc 7.5, 8.4 and 9.3
Replies: 29
Views: 796

Re: FB builds using gcc 7.5, 8.4 and 9.3

@UEZ Thanks for testing gas64. However to be sure, have you used -gen gcc with fbc64_gas64 ? If so you got a "regular" exe compiled with gcc and the test has no real interest :-) But it would be surprising that without optimization (-o) you got the best average.... With fbc64_gas64 the def...

Go to advanced search