Search found 1441 matches

by Imortis
Jan 20, 2018 1:07
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 178
Views: 5894

Re: Pure FB Runtime Library (in progress)

You did ask before. See https://www.freebasic.net/forum/viewtopic.php?p=237909#p237909 and following replies. To summarise, make these module constructor and destructors: Maybe we should just use ctor/dtor priority 101 for the FB runtime, and disallow users from using priority 101. Then we can avoi...
by Imortis
Jan 19, 2018 22:05
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 178
Views: 5894

Re: Pure FB Runtime Library (in progress)

I may have asked about this already, but the rtlib in fbrt0.c has these lines: static void * priorityhDoInit __attribute__((section(".ctors.65435"), used)) = fb_hDoInit; static void * priorityhDoExit __attribute__((section(".dtors.65435"), used)) = fb_hDoExit; What do I do with t...
by Imortis
Jan 18, 2018 20:25
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 178
Views: 5894

Re: Pure FB Runtime Library (in progress)

By the way, the problem with file_datetime.bas (and I assume file_attr.bas) is because of some duplicate defs:
win32\wchar.bi
win32\stat.bi
io.bi

I edited my copies of these with #ifndefs to make the errors go away since the definitions are exactly the same.
by Imortis
Jan 17, 2018 21:50
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 178
Views: 5894

Re: Pure FB Runtime Library (in progress)

If rtl-string,bi is to be believed, no. It looks like it maps the ASC to the RTlib function, just like everything else.
by Imortis
Jan 17, 2018 19:27
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 178
Views: 5894

Re: Pure FB Runtime Library (in progress)

@TeeEmCee: I see that you replaces a bunch of ascii constants with ASC() calls. I was not doing that myself because ASC is part of the runtime library. I did not want to cause any chicken-egg problems. If that is not an issue here, I can go through and replace all the constants with ASC calls.
by Imortis
Jan 17, 2018 17:52
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 178
Views: 5894

Re: Pure FB Runtime Library (in progress)

TeeEmCee wrote:You haven't checked in the con_print_tty_uni.bas file yet.


That was a mistake. The file SHOULD be con_print_tty_uni.bi. I save it with the wrong name to begin with. I removed it from the folder so it would not get checked in.
by Imortis
Jan 16, 2018 23:11
Forum: General
Topic: Very strange
Replies: 10
Views: 262

Re: Very strange

@Jawade: What exactly is this supposed to accomplish? Why would you modify the program in this manner?
by Imortis
Jan 16, 2018 15:47
Forum: General
Topic: Benefits of inline if?
Replies: 31
Views: 572

Re: Benefits of inline if?

It looks like it is implemented in the then compiler, so no libraries or C used here. File is ast-node-iif.bas
by Imortis
Jan 16, 2018 14:04
Forum: General
Topic: Benefits of inline if?
Replies: 31
Views: 572

Re: Benefits of inline if?

Good lord, did this topic run away from me. I had my question answered a couple pages ago. I guess I asked a question that was a bit deeper than I intended it to be. Thanks to everyone who participated.
by Imortis
Jan 15, 2018 16:36
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 178
Views: 5894

Re: Pure FB Runtime Library (in progress)

OK, after building the mt variants I managed to compile fbc-tests (the cunit tests), but it freezes. I tried log-tests, and there are only 6 failures! This was done on my own branch before I merged your work. Wow, you've translated over half the rtlib now. Nice work! I merged our fixes and submitte...
by Imortis
Jan 13, 2018 7:19
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 178
Views: 5894

Re: Pure FB Runtime Library (in progress)

I would rather be correct then not. No disappointment here. Like I said I tried a few string functions and they are broken on quoted temp strings. As to silencing warnings, I am working under the assumption that the crt headers are correct. I have found a couple places where it is not, but I don't k...
by Imortis
Jan 13, 2018 3:39
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 178
Views: 5894

Re: Pure FB Runtime Library (in progress)

I am amazed! Test suite Passed! However, I seem to have messed something up somewhere along the line as the "String" will not take a quoted string as a parameter. It will work with the ASCII code for a character... I am pretty sure I know what the problem is. I will soon post all my change...
by Imortis
Jan 13, 2018 2:32
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 178
Views: 5894

Re: Pure FB Runtime Library (in progress)

... Can you not just use the variadic macros. ... I just replaced them with the FB command plus equivalent code. I can try later to add the macros and see what happens. I am trying to add as little code as possible to this. The macros were not in the original source, so I did not add them. EDIT: I ...
by Imortis
Jan 13, 2018 2:08
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 178
Views: 5894

Re: Pure FB Runtime Library (in progress)

dodicat wrote:...
-gen gcc -c *.bas compiles all the files to .o
...


It should not compile right on -gen GCC just yet. The GCC backend does not support variadic functions, which are used in a lot of places. I am surprised it compiled.
by Imortis
Jan 12, 2018 23:58
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 178
Views: 5894

Re: Pure FB Runtime Library (in progress)

I get quite a few errors when I try to compile. Does "fbc -c *.bas" work for you? Yeah, I am getting some errors on the con_print_tty_uni.bas file. I thought I had those fixed in my local copy... I will check that out. Give me a few days to look at it. I was going to work on it today duri...

Go to advanced search