Search found 260 matches

by creek23
Oct 02, 2013 18:04
Forum: General
Topic: gen -gcc overlooking something, help please.
Replies: 14
Views: 1918

Re: gen -gcc overlooking something, help please.

Hi dkl, Not sure how to send the source file over to you. Your email address is not displayed and this forum's email doesn't allow attaching files -- the generated C-source file is 2MB with over 57KLOC, so pasting it wouldn't make sense. Anyway, I forgot to mention that _ZN3OGL5CORS$E is a static ar...
by creek23
Oct 02, 2013 10:45
Forum: General
Topic: gen -gcc overlooking something, help please.
Replies: 14
Views: 1918

Re: gen -gcc overlooking something, help please.

However there is an fbc -asm intel option that can be used together with -gen gcc Hi dkl, I tried using FBC -asm intel -gen gcc -R -m source SOURCE.BAS and I got a SOURCE.C but it's not compiling because of a GCC error: source.c: In function 'SCREENSYNC': source.c:2084:87: error: memory input 1 is ...
by creek23
Oct 02, 2013 8:00
Forum: General
Topic: error 169: Invalid assignment/conversion [FBC 0.90.1]
Replies: 11
Views: 1565

Re: error 169: Invalid assignment/conversion [FBC 0.90.1]

dkl wrote:chr() returns a string

o.O

Makes sense.

Thanks again, dkl!

~creek23
by creek23
Oct 02, 2013 6:00
Forum: General
Topic: app is crashing! (GCC-compiled, FBC-generated C code)
Replies: 5
Views: 994

Re: app is crashing! (GCC-compiled, FBC-generated C code)

dodicat wrote:Thanks for these switches, just what I was looking for.

You're welcome! But I simply copied that from FBC -v's output.

~creek23
by creek23
Oct 02, 2013 5:58
Forum: General
Topic: app is crashing! (GCC-compiled, FBC-generated C code)
Replies: 5
Views: 994

Re: app is crashing! (GCC-compiled, FBC-generated C code)

I also see a crash during gzread() in test_gzio() on Linux with -gen gas/gcc, and I think that zlib example is broken Thanks for looking into my problem, dkl. Ignoring the issue on the zlib example, I tried doing -gen gcc with my project but I faced a different issue when compiling, which I stated ...
by creek23
Oct 02, 2013 5:44
Forum: General
Topic: error 169: Invalid assignment/conversion [FBC 0.90.1]
Replies: 11
Views: 1565

error 169: Invalid assignment/conversion [FBC 0.90.1]

For some reason, I have this stub of code that I (or somebody else) might have added a long time ago for some basic encryption-ish, idk. PUBLIC FUNCTION trimOdds(oldStr As STRING) AS STRING DIM AS STRING newStr = STRING(LEN(oldStr) / 2," ") DIM ii AS INTEGER FOR i AS INTEGER = 0 TO LEN(old...
by creek23
Oct 01, 2013 17:18
Forum: General
Topic: app is crashing! (GCC-compiled, FBC-generated C code)
Replies: 5
Views: 994

Re: app is crashing! (GCC-compiled, FBC-generated C code)

Btw, I tried a very basic: DIM i AS INTEGER i = 100 PRINT "helloworld" PRINT "i is " & i and it worked like a charm. I just wanted to make the zlib.bas work because my FB project is way more complicated than the zlib.bas example. With zlib.bas failing to execute properly, I'm...
by creek23
Oct 01, 2013 17:14
Forum: General
Topic: app is crashing! (GCC-compiled, FBC-generated C code)
Replies: 5
Views: 994

app is crashing! (GCC-compiled, FBC-generated C code)

Hoping to finally port my FB project from BAS to C, I finally tried out FBC 0.90.1 -- last I had was 0.24. It's good to know that generating C code from BAS finally works right out of the box. So, I tried compiling FBC_ROOT\examples\compression\zlib.bas via: fbc -gen gcc -R -m zlib -v zlib.bas Then ...
by creek23
Jul 25, 2012 11:21
Forum: Community Discussion
Topic: Preparing FB 0.24
Replies: 43
Views: 4612

Re: Preparing FB 0.24

Is C-emitter shipping with 0.24? Is it anywhere near stable?

~creek23
by creek23
Jul 25, 2012 11:10
Forum: Tips and Tricks
Topic: Writing TAR (Tape ARchive) files
Replies: 8
Views: 1176

Re: Writing TAR (Tape ARchive) files

It might be the headache from flu I now have or I'm just too lazy to search the forums but, has someone wrote a TAR Reader? I surely would like to add this read/write TAR feature on Quixie.

~creek23
by creek23
Jul 25, 2012 11:04
Forum: Tips and Tricks
Topic: Displaying values of an array using a html table
Replies: 3
Views: 780

Re: Displaying values of an array using a html table

instead of plain HTML, one can also take advantage on how modern browsers display XML data. See samples: * http://www.w3schools.com/xml/note.xml * http://www.w3schools.com/xml/simple.xml Notice how you can toggle hide/show an element? Or maybe the above HTML Table sample could be modified to include...
by creek23
Mar 27, 2012 4:58
Forum: General
Topic: Array size limit
Replies: 24
Views: 2533

Re: Array size limit

Thanks fxm. With your snippet, I just realized that from 52516 array size multiplied by 56 bytes (as returned by SizeOf) I am actually using 2,940,896 bytes. o.O

I guess it's a dead end for me here unless I write a better algorithm for my program. :(

~creek23
by creek23
Mar 26, 2012 10:46
Forum: General
Topic: Array size limit
Replies: 24
Views: 2533

Re: Array size limit

Hi all,

Thank you for the replies.

With regards to declaration, I actually declared it like this:

Code: Select all

Extern Bar() As Foo

since it will be used across BAS files and ReDim'ed it from inside a function. Is that as good as Shared?

~creek23
by creek23
Mar 26, 2012 5:45
Forum: Windows
Topic: Disphelper FB Howto ?
Replies: 9
Views: 2472

Re: Disphelper FB Howto ?

Hi dkl,

I already did copy everything like what K128 did, but I'm still getting the gcc CreateProcess error.

Anyone else got -gen gcc working?

Or maybe, has anyone created an FB to C++ converter?

~creek23
by creek23
Mar 26, 2012 5:34
Forum: General
Topic: Array size limit
Replies: 24
Views: 2533

Array size limit

Hi all, From my understanding, an array size is only limited by the available memory. But somehow my app is is crashing if the array size is 52517 long... while it works fine if its 52516 long only. And since I have 4GB, I was expecting a bigger size than what I'm getting now. Btw, my array is an ar...

Go to advanced search