Search found 3086 matches

by marcov
Jun 19, 2021 11:08
Forum: Community Discussion
Topic: FreeBASIC 1.08.1 and 1.09.0 Development
Replies: 11
Views: 441

Re: FreeBASIC 1.08.1 and 1.09.0 Development

angros47 wrote:
Or would such a thing open a Pandora box of troubles?


Yes. It would unbalance the stack if you are not very careful.
by marcov
Jun 17, 2021 12:32
Forum: Community Discussion
Topic: [offtopic] Low budget but good NVIDIA GTX cards.
Replies: 2
Views: 175

Re: [offtopic] Low budget but good NVIDIA GTX cards.

Note that you need to offset that for the cost of extra (heavy) powersupplies. IIRC a GTX 750 can even work with just the power provided via pci-express. And fanless (the 710's big feature) is of course directly important to keep noise down. But I mostly kept track of videocards for my applications ...
by marcov
Jun 05, 2021 17:11
Forum: Documentation
Topic: External Graphics File Formats (page to fill in Programmer's Guide)
Replies: 7
Views: 287

Re: External Graphics File Formats (page to fill in Programmer's Guide)

99% of the questions here are like " how do I display JPG? " Nobody uses BMP. Under Windows, displaying a JPG with GdiPlus is relatively simple, but I can't speak for Linux, of course. BMP is used a lot in machine vision and as an intermediate format in general, as it is basically just a ...
by marcov
May 23, 2021 22:02
Forum: General
Topic: Is there any example about writing Python extension with FBC?
Replies: 22
Views: 778

Re: Is there any example about writing Python extension with FBC?

I agree it's not the same thing techincally, but it has the same effect in the end for many types of FB DLLs or programs. That's what I meant. And given how easy ctypes makes it to load and use C symbols from DLLS, with a standard FB-generated DLL, I think ctypes might win in a variety of circumsta...
by marcov
May 22, 2021 15:38
Forum: General
Topic: Is there any example about writing Python extension with FBC?
Replies: 22
Views: 778

Re: Is there any example about writing Python extension with FBC?

Are there such solutions for python 3 already ? Most dlls I saw seem to be python 2.
by marcov
May 21, 2021 10:56
Forum: General
Topic: Naked return value
Replies: 11
Views: 360

Re: Naked return value

On Windows, XMM for FPU is default for 64-bit, not for 32-bit.
by marcov
May 19, 2021 20:23
Forum: General
Topic: gcc and asm
Replies: 24
Views: 635

Re: gcc and asm

@marcov You have the volatile and non-volatile registers the wrong way around. The link you provided is wrong. With PowerBASIC EBX, ESI and EDI are automatically pushed at the beginning of a procedure and automatically popped before exiting the procedure. This is to conform to the Windows programmi...
by marcov
May 19, 2021 15:33
Forum: General
Topic: gcc and asm
Replies: 24
Views: 635

Re: gcc and asm

Hooking onto srvaldez' train of thought: try to push and pop esi and edi before/after your asm code, and see what happens. From https://en.wikibooks.org/wiki/X86_Assembly/High-Level_Languages : CDECL calling convention specifies a number of different requirements: ..... The volatile registers are: E...
by marcov
May 16, 2021 12:14
Forum: Beginners
Topic: Operators vs Macros
Replies: 5
Views: 451

Re: Operators vs Macros

AWPStar wrote:I want make fixed-point udt and work with it like with any other types.
It not very convenient to use something like that "fpAdd(1, 2)"
But for operators fbc generates functions and it slows the speed of code.
Is there any solution for this?


Implement decent function inlining ?
by marcov
May 16, 2021 8:36
Forum: Libraries
Topic: Is possible to link with a DEF file?
Replies: 9
Views: 364

Re: Is possible to link with a DEF file?

Usually a .DEF file is just a file that described to the linker how to link with a DLL. It does not contain the library itself. I'm not sure the GCC linker system that FB actually uses DEF files. Usually you link against the .dll directly. (It did in the past, when I started with Open Source on Win...
by marcov
May 15, 2021 16:31
Forum: Linux
Topic: malloc(): invalid size (unsorted)
Replies: 20
Views: 1414

Re: malloc(): invalid size (unsorted)

Afaik most of those tools simply have options to check memory integrity on each existing allocations into the heap manager (an alloc/realloc/dealloc), configurable check the memory guards on the current, last <n> or all allocations (the latter of course slows down tremendously). Quite often they als...
by marcov
May 11, 2021 10:24
Forum: Linux
Topic: malloc(): invalid size (unsorted)
Replies: 20
Views: 1414

Re: malloc(): invalid size (unsorted)

counting_pine wrote:
I think one of the problems is simply that Microsoft implemented very accessible, user-friendly, integrated debuggers in their versions of BASIC, which can make it harder to transition to tools like gdb.


The core problem is that GDB sucks of course ;-) Not the good integrated debuggers: -)
by marcov
May 10, 2021 7:09
Forum: Linux
Topic: malloc(): invalid size (unsorted)
Replies: 20
Views: 1414

Re: malloc(): invalid size (unsorted)

(I would see if I can compile it for *nix and then try to use valgrind)
by marcov
May 07, 2021 20:52
Forum: General
Topic: openfilename
Replies: 25
Views: 969

Re: openfilename

Imortis, OP thought that M$ had abandoned OpenFileName in 64-bit land. I just demonstrated that this is not the case. I am well aware. It is lucky that the user in question understands ASM, but if anyone else has the same question, they may not have the same skillset. (trust me, a bit of ASM knowle...
by marcov
May 07, 2021 20:42
Forum: Community Discussion
Topic: Albert's thread
Replies: 51
Views: 2042

Re: Albert's thread

Good morning all. This topic appeals to me, I make these thoughts in total frankness. I would like to start with a point that seems important to me: Albert's ban from the forum is a scathing political defeat. Because from the point of view of a non-scientist, Albert has done no harm: I have never s...

Go to advanced search