Assembly Language inside PHP - possible / not ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sarel

    #1

    Assembly Language inside PHP - possible / not ?

    Hi All,

    I'd like to know whether it is possible to use inline assembly code
    inside PHP? Remember good old Turbo Pascal 7, one could write Assembly
    language inside it if you have a function that will be ran millions of
    times inside a loop? This sped up the process by hundred-folds because
    of the speed of that bit of assembly language.
    Well, I'd like to do the same in PHP, but am unable to find any
    conclusive evidence (and help) on whether this works and how.

    Any ideas... anybody?

    Thanks

    Sarel

  • NC

    #2
    Re: Assembly Language inside PHP - possible / not ?

    Sarel wrote:
    >
    I'd like to know whether it is possible to use inline assembly code
    inside PHP?
    Not inside PHP... What you need to do is to write a custom PHP
    extension in C; inside that extension, you can do anything C allows
    you to do, including inline assembly code...

    Cheers,
    NC

    Comment

    • Sarel

      #3
      Re: Assembly Language inside PHP - possible / not ?

      Thanks NC... I was hoping to avoid that... but it looks like I'm just
      gonna have to get down to learning how to write extentions :)

      Thanks again.
      Sarel

      On Jan 7, 11:18 pm, "NC" <n...@iname.com wrote:
      Sarel wrote:
      >
      I'd like to know whether it is possible to use inline assembly code
      inside PHP?Not inside PHP... What you need to do is to write a custom PHP
      extension in C; inside that extension, you can do anything C allows
      you to do, including inline assembly code...
      >
      Cheers,
      NC

      Comment

      Working...