Recent

Author Topic: lazarus compile on any language  (Read 2835 times)

hengky

  • New Member
  • *
  • Posts: 11
lazarus compile on any language
« on: February 18, 2016, 03:15:26 pm »
Can Lazarus compile to any language like

- Lazarus compile  on php
-Lazarus compile on javascript
- Lazarus compile on java ( Like oxygene for java)
- Lazarus compile on perl,phython, ruby , rabbit, haskell , prolog or anything

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 10302
  • FPC developer.
Re: lazarus compile on any language
« Reply #1 on: February 18, 2016, 03:22:47 pm »
Only to JVM (Java bytecode), and that is not even default, and not entirely compatible.

(Object Pascal) is generally a quite lower level language comparable to C and C++, and compilation to higher languages like you name is generally not useful.

Thaddy

  • Hero Member
  • *****
  • Posts: 11943
Re: lazarus compile on any language
« Reply #2 on: February 18, 2016, 03:41:57 pm »
Only to JVM (Java bytecode), and that is not even default, and not entirely compatible.
It is default, but yes there are some issues with some language features (and current java trunk is temporary broken)
Quote
(Object Pascal) is generally a quite lower level language comparable to C and C++, and compilation to higher languages like you name is generally not useful.
If there is a JVM decompiler for that language you can first compile from FPC and decompile to f.e. Java itself. See http://jd.benow.ca/
Since there are Java2PHP, JavaToCpp etc. available, you may setup a complicated toolchain to recompile fpc code to sourcecode in another language.
« Last Edit: February 18, 2016, 03:47:44 pm by Thaddy »
Black themes should be banned.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 10302
  • FPC developer.
Re: lazarus compile on any language
« Reply #3 on: February 18, 2016, 03:51:31 pm »
Only to JVM (Java bytecode), and that is not even default, and not entirely compatible.
It is default,

In which one is it default ?

Thaddy

  • Hero Member
  • *****
  • Posts: 11943
Re: lazarus compile on any language
« Reply #4 on: February 18, 2016, 03:56:54 pm »
In which one is it default ?
Ah, I see what you mean. I only meant that it is part of an official release: fpc 3.0.0 which I took to be default, unlike llvm for example.
Black themes should be banned.

 

TinyPortal © 2005-2018