Use LLVM ?

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Wladek
User
User
Posts: 98
Joined: Mon Feb 23, 2009 4:01 pm
Location: Poland
Contact:

Use LLVM ?

Post by Wladek »

Meaby FASM is too old, and too heavy to maintain.
Meaby use LLVM/Clang and his optimization ?
It is only Idea
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: Use LLVM ?

Post by DarkDragon »

Why? FASM is too young, not too old!
bye,
Daniel
User avatar
idle
Always Here
Always Here
Posts: 5844
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Use LLVM ?

Post by idle »

llvm outputs assembly so it can be used with any assembler and linker.
Windows 11, Manjaro, Raspberry Pi OS
Image
jboadas
User
User
Posts: 12
Joined: Thu Jul 14, 2011 7:38 pm

Re: Use LLVM ?

Post by jboadas »

Ok supose you use llvm to Cross-Platform development, There is no easy way to manage the gui stuff across multiple platforms using llvm. In the frontend language you need a library with a coherent wrapper for all cross platform gui stuff (CLang still doesnt have one) and in the backend target you need a "compiler backend" for every target platform. Supose for example you found a gui library that works on windows, linux (all flavors), osx, Android, Ios, WP7, Symbian, Webos, Blackberry with llvm, maybe SWT could help but the java frontend of llvm is incomplete, Maybe Qt Lighthouse could helps but the Qt targets for Ios and Android are still in beta .
Please correct me if I am wrong but today LLVM still doest offer a solution for the cross platform stuff.
Today Fasm could compile to arm for mobile http://arm.flatassembler.net/ but there is still a lot of work.
Thorium
Addict
Addict
Posts: 1305
Joined: Sat Aug 15, 2009 6:59 pm

Re: Use LLVM ?

Post by Thorium »

jboadas wrote: Today Fasm could compile to arm for mobile http://arm.flatassembler.net/ but there is still a lot of work.
It doesnt compile, it assembles. Similar words but on computers they have quite a different meaning.

A compiler generates assembler or machine code from a higher form of code. 2 different compilers can generate very different machine code from the same source code.

A assembler translates assembler code to machine code 1:1. 2 different assemblers will genererate the same machine code from the same source code.

Getting a ARM assembler was never the problem.
jboadas
User
User
Posts: 12
Joined: Thu Jul 14, 2011 7:38 pm

Re: Use LLVM ?

Post by jboadas »

Thorium wrote:It doesnt compile, it assembles.
Yep you are right. My last Assembler was 360. :D
Post Reply