Register | Login
Forum Index > General Discussion > PECOFF for ziron2
Author Message
Pages: 1
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1396] PECOFF for ziron2 - posted: 2014-04-13 22:34:14
Hi

as the title says, can you support coff obj for linking with gcc ld linker.

thanks.

http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1397] - posted: 2014-04-14 11:23:19
Check the changelog smile there is already an experimental implementation.

Code:
program MSCOFF 'test';


note with coff objects you should declare also the type of app you are building, so the includes can output correct code.

e.g.

Code:
program MSCOFF 'test';

#define APPTYPE_GUI;

#include 'win_def.zir';
#include 'console.zir';

//some test movs
Dword a,b,c;
a = 512;
b = 1024;
c = 2048;

//test messagebox
MessageBoxA(0, 'Test', 'Test', 0);

ExitProcess(0);


As I said the implementation is experimental and needs lots of testing, so if you have any problems, please let me know smile

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1399] - posted: 2014-04-16 19:20:13
Hi Mr Colin,

actually the ld linker of gcc did not like MSCOFF.

i got that error when adding obj file produeced by ziron compiler with gcc stuff.

D:/MonkeyX\MinGW/bin/ld.exe: final link failed: File truncated
collect2.exe: error: ld returned 1 exit status


i think obj file for gcc is deffer from that for ms obj.

http://www.freewebs.com/ogremagic/index.htm
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1400] - posted: 2014-04-16 19:29:05

with new version 2.0.0.9 and worked.

thanks.

if i will find any error i will post again.

http://www.freewebs.com/ogremagic/index.htm
Pages: 1
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 2 user(s) online. 0 member(s) and 2 guest(s)
Most users ever online was 1046, January 28, 2022, 2:08 pm.


Statistics:
Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51
Welcome to our newest member, yecate
const Copyright = '2011-2024 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd