Search found 3805 matches

by TJF
Jan 02, 2024 16:09
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 227
Views: 20494

Re: Freebasic 1.20.0 Development

Happy new year! Found some time to test, here's what I did: That's awesome! Thank-you for the excellent detail. Gladdended that my report seems to satisfy your needs. so the bootstrap compiler installs and works fine on the fresh image. (Perhaps we don't need the script freebasic/contrib/release/bui...
by TJF
Dec 31, 2023 13:47
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 227
Views: 20494

Re: Freebasic 1.20.0 Development

Found a further way to auto-detect -march:

Code: Select all

$ gcc -Q --help=target | grep march
  -march=                     		armv7-a+fp
Regards
by TJF
Dec 31, 2023 13:08
Forum: Beginners
Topic: DIM-ing a constant string
Replies: 6
Views: 501

Re: DIM-ing a constant string

fzabkar wrote: Dec 28, 2023 19:05 I would like to Dim a constant 512-byte string consisting of 256 repetitions of "Er".
Why do you think you'll need such a CONST STING?

From my point of view, there's an issue in your concept.

Regards
by TJF
Dec 31, 2023 12:37
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 227
Views: 20494

Re: Freebasic 1.20.0 Development

That sounds about right - with maybe one step that needs to get worked out differently in the future (see below), but I think your steps should work for you now with the assets uploaded to sourceforge. Found some time to test, here's what I did: burned a fresh SD card with image am335x-debian-12.2-...
by TJF
Dec 29, 2023 12:17
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 227
Views: 20494

Re: Freebasic 1.20.0 Development

First of all, thanks for caring about the issue patiently! Hopefully this can work for you: - FreeBASIC-1.10.2 (ARM only) release If you can test and it works, I can add to the news release, thanks As far as I understand, I should now manually download, install and test the binary package https://do...
by TJF
Dec 27, 2023 7:35
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 227
Views: 20494

Re: Freebasic 1.20.0 Development

-march=armv7-a has been passed to gcc since year 2014. Have you had to explicitly set native target all this time? That seems unlikely, but you let me know. I don't focus on testing each new feature and version. My target is to provide working solutions for my users. So I use tools that users can e...
by TJF
Dec 26, 2023 15:19
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 227
Views: 20494

Re: Freebasic 1.20.0 Development

Are you bootstrapping fbc from sources and building your own fbc executable, rtlib*, and gfxlib* libraries? Yes, I did so, since Joshi and me did the first tests on arm. Later dkl implemented our results in the mainstream source. It worked fine, until the -march option gets set in the gcc call. Now...
by TJF
Dec 26, 2023 4:20
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 227
Views: 20494

Re: Freebasic 1.20.0 Development

I found this article helpful https://s-o-c.org/arm-gcc-compiler-flags-mcpu-vs-mfloat-abi-vs-mfpu-explained/ This article is helpful for users that want to compile optimized binaries. In most cases, fbc users don't care about maximum speed. They first want working binaries. I don't want to force a p...
by TJF
Dec 25, 2023 6:59
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 227
Views: 20494

Re: Freebasic 1.20.0 Development

coderJeff wrote: Dec 23, 2023 17:07 -target native is the workaround
From my point of view, native should be default. In my CLI software I do not force the users to set an option to get default behavior.

Marry Christmas!
by TJF
Dec 09, 2023 16:04
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 227
Views: 20494

Re: Freebasic 1.20.0 Development

Just to remember: $ ./fbc -r a.bas $ gcc -S -nostdlib -nostdinc -Wall -Wno-unused -Wno-main -Werror-implicit-function-declaration -O0 -fno-strict-aliasing -frounding-math -fno-math-errno -fwrapv -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables -Wno-format "a.c" -o "a...
by TJF
Dec 09, 2023 15:48
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 227
Views: 20494

Re: Freebasic 1.20.0 Development

It appears that gcc itself is imposing (or simply defaulting to) the `-mfloat-abi=hard` option, because fbc doesn't emit this option. Yes, that message is emited by gcc, but only when any specific -march=... option is set. When gcc gets no -march option, it compiles fine. That's why I recommend to ...
by TJF
Dec 09, 2023 0:30
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 227
Views: 20494

Re: Freebasic 1.20.0 Development

I don't know if it's relevant: testing the uname host-arch and all gcc supported armV7 $ uname -a Linux BeagleBone 5.19.8-bone9 #1bookworm PREEMPT Tue Sep 13 00:43:19 UTC 2022 armv7l GNU/Linux $ ./fbc -Wc -march=armV7l a.bas gcc: error: unrecognized -march target: armv7l gcc: note: valid arguments a...
by TJF
Dec 08, 2023 23:45
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 227
Views: 20494

Re: Freebasic 1.20.0 Development

Hi Jeff! Testing your binary on BeagleBone Black (TI am3358 CPU): $ uname -a Linux BeagleBone 5.19.8-bone9 #1bookworm PREEMPT Tue Sep 13 00:43:19 UTC 2022 armv7l GNU/Linux $ wget http://downloads.sourceforge.net/fbc/FreeBASIC-1.10.0-rpios11-arm.tar.gz?download $ mv FreeBASIC-1.10.0-rpios11-arm.tar.g...
by TJF
Dec 06, 2023 5:20
Forum: Beginners
Topic: sqlite3 question
Replies: 6
Views: 736

Re: sqlite3 question

Due to line 26

Code: Select all

	return 1
the return value of your main_function is always 1. (Why don't you evaluate the return value?) The function closes the opened file only in case of an error.

Regards
by TJF
Nov 30, 2023 5:39
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 227
Views: 20494

Re: Freebasic 1.20.0 Development

Hi Jeff! Do you know an '-march' that would be seen as 'generic' across many targets? What about omitting the -march option? Maybe, but only for end user I think. Can you please provide a patch to get rid of that option in the gcc call (for a freebasic package in the BBB distro ). Regards