Recent

Author Topic: possible to add inlined CPU-specific assembly language instructions?  (Read 12025 times)

Bloody mess

  • Newbie
  • Posts: 3
Re: possible to add inlined CPU-specific assembly language instructions?
« Reply #15 on: January 22, 2015, 07:57:15 pm »
Maybe could break something when used improperly.
And if I use it properly? It is difficult to just insert an asm block into output assembler code generated by fpc without any changes?

Hmm... Maybe I should use pure assembler... at least a dll on it...

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: possible to add inlined CPU-specific assembly language instructions?
« Reply #16 on: January 22, 2015, 08:07:58 pm »
Hmm... Maybe I should use pure assembler... at least a dll on it...
static library maybe?

Bloody mess

  • Newbie
  • Posts: 3
Re: possible to add inlined CPU-specific assembly language instructions?
« Reply #17 on: January 22, 2015, 08:49:30 pm »
static library maybe?
Yes, it is probably better.
Но всё равно жалко, что с ассемблером такая жопа.
Or maybe it's not worth all this... But assembler changed my mind. Assembler and Zen)
« Last Edit: January 22, 2015, 08:58:16 pm by Bloody mess »

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: possible to add inlined CPU-specific assembly language instructions?
« Reply #18 on: January 22, 2015, 09:40:20 pm »
It is not that bad with the assembler, it's a little bit worse with the contribution to the compiler ;)

After all, FPC is just another pascal program, that an average pascal developer should be able to read, understand, debug, modify and ... send a patch eventually

 

TinyPortal © 2005-2018