Search found 2285 matches

by deltarho[1859]
Mar 01, 2017 18:23
Forum: Tips and Tricks
Topic: On FreeBASIC's random number generators.
Replies: 35
Views: 4589

Re: On FreeBASIC's random number generators.

While compiling this message popped up when using your code. Tell me about it.<smile> I started a thread about that yesterday. It looks like it has manifested itself dependent upon Windows versions and FreeBASIC versions. I have been getting some very strange behaviour. My logic took a battering an...
by deltarho[1859]
Mar 01, 2017 15:31
Forum: Beginners
Topic: Failed compilation but no errors and no warnings
Replies: 23
Views: 1842

Re: Failed compilation but no errors and no warnings

Interesting. So, Billythebarge did not need 'dword ptr' with Windows Vista and FREEBASIC-1.03.0-win64 but I did with Windows 10 and FREEBASIC-1.05.0-win64. Ain't programming fun? A: Got an update for you. B: Oh, good - security and bug fixes? A: No - new features. B: You are now looking down the bar...
by deltarho[1859]
Mar 01, 2017 15:01
Forum: Beginners
Topic: Failed compilation but no errors and no warnings
Replies: 23
Views: 1842

Re: Failed compilation but no errors and no warnings

EUREKA! GAS needs a helping hand. Put a bit of flesh on the failing code above to give it something to do. This works for 32 bit and 64 bit. Function Test64 As ULong Dim As any Ptr ptrBuffer Dim As ULong testvar testvar = 123456 ptrBuffer = @testvar Asm mov eax, dword ptr [ptrBuffer] mov eax, [eax] ...
by deltarho[1859]
Mar 01, 2017 14:04
Forum: Beginners
Topic: Failed compilation but no errors and no warnings
Replies: 23
Views: 1842

Re: Failed compilation but no errors and no warnings

@srvaldez seem like I am on your ignore list I was about to reply earlier but I was up to my neck in commenting out code hoping to see a compilation at some point but it never happened. I ended up with just a few lines which still did not compile; as posted above. I did try your original suggestion ...
by deltarho[1859]
Mar 01, 2017 13:09
Forum: Beginners
Topic: Failed compilation but no errors and no warnings
Replies: 23
Views: 1842

Re: Failed compilation but no errors and no warnings

GOT IT! The following code compiles in 32 bit mode. If we immediately compile in 64 bit mode all seems well but it actually is not. If we delete the exe and then compile in 64 bit mode a zero byte file is created and the IDE says nothing. If we compile at the command line we get F:\Downloads\FreeBAS...
by deltarho[1859]
Mar 01, 2017 0:53
Forum: Beginners
Topic: Failed compilation but no errors and no warnings
Replies: 23
Views: 1842

Re: Failed compilation but no errors and no warnings

I have just thrown the towel in with regard my fast CPRNG in 64 bit. I have an idea though but I will keep quiet about that - I don't have a problem with getting egg on my face - but I may do twice in the same week. <laugh>
by deltarho[1859]
Mar 01, 2017 0:43
Forum: Windows
Topic: A fast CPRNG
Replies: 67
Views: 8288

Re: A fast CPRNG

CryptoRndBuffer.bas is now for 32 bit compilation only - I bit off more than I can chew with 64 Bit! We live and learn.<smile>
by deltarho[1859]
Feb 28, 2017 23:59
Forum: Beginners
Topic: Failed compilation but no errors and no warnings
Replies: 23
Views: 1842

Re: Failed compilation but no errors and no warnings

I Googled 'asm x64 freebasic' and found some interesting posts that I may not have found otherwise. If I needed to produce 64 bit executable code which used some inline assembler I would now be starting to panic. I have enough on my plate learning FreeBASIC BASIC without getting involved with that l...
by deltarho[1859]
Feb 28, 2017 20:27
Forum: Beginners
Topic: Failed compilation but no errors and no warnings
Replies: 23
Views: 1842

Re: Failed compilation but no errors and no warnings

Pernickety? Thinks ..... yeah, OK. <smile> I have had a chance to look at the error thrown up by the command line and it is rubbish. It then occurred to me that if my 32 bit mnemonics were not carrying into 64 bit opcodes correctly then the 64 bit assembler may be looking at an opcode which bears no...
by deltarho[1859]
Feb 28, 2017 18:33
Forum: Windows
Topic: A fast CPRNG
Replies: 67
Views: 8288

Re: A fast CPRNG

STOP PRESS Do not compile with 64 bit. I have a problem somewhere but I cannot find it. I am knew to 64 bit assembly and have just learned that there is no such thing as pushad and popad in x64. The 64 bit command line did not spot that either. I have conditionally worked around that but the issue s...
by deltarho[1859]
Feb 28, 2017 17:00
Forum: Tips and Tricks
Topic: On FreeBASIC's random number generators.
Replies: 35
Views: 4589

Re: On FreeBASIC's random number generators.

It is worth mentioning that once my buffers have been filled, getting a random ULong is simply a matter of reading it from RAM and is, therefore, the fastest way of getting a random ULong; unlike PRNGs which get involved in all sorts of weird and wonderful ways of generating a random ULong. If we us...
by deltarho[1859]
Feb 28, 2017 15:42
Forum: Beginners
Topic: Failed compilation but no errors and no warnings
Replies: 23
Views: 1842

Re: Failed compilation but no errors and no warnings

In general avoid inline assembly and use plain FreeBasic code instead. I cannot do that - I am a speed freak - I would break out in a rash. <laugh> Rather try to use the GCC backend with a higher optimization level. I will look into that. I will be back re code that the IDE does not report errors on.
by deltarho[1859]
Feb 28, 2017 15:35
Forum: Tips and Tricks
Topic: On FreeBASIC's random number generators.
Replies: 35
Views: 4589

Re: On FreeBASIC's random number generators.

In my program, speedwise it is on par with FreeBASIC's option 1, 2 and 4. That surprises me - in tests that I have done options 1, 2 and 4 have been left standing. I wonder if your number crunching statements are very complex. Suppose a statement took 98% of the time crunching and 2% of the time ge...
by deltarho[1859]
Feb 28, 2017 14:56
Forum: Beginners
Topic: Failed compilation but no errors and no warnings
Replies: 23
Views: 1842

Re: Failed compilation but no errors and no warnings

I am not concerned about the errors the command line throws up - I have not spent anytime considering them and would only come here if I got stumped. What concerns me is that had it not been for a zero byte file being created I would not have known that the compilation failed and then the IDE used t...
by deltarho[1859]
Feb 28, 2017 13:46
Forum: Beginners
Topic: Failed compilation but no errors and no warnings
Replies: 23
Views: 1842

Failed compilation but no errors and no warnings

When running in 64 bit mode I had a small test code to do something differently to when running in 32 bit mode. However, "do something differently" did not happen. I then noticed that the compiled file when running in 64 bit mode was zero bytes. I then deleted the exe and, on compilation, ...

Go to advanced search