[Mono-dev] A inline asm on aix

2016-07-12 Thread Zhanxing Ding
Hi All,

I am porting mono, does anyone know how to write the inline asm on aix to 
replace the following inline asm.

#define MONO_THREAD_VAR_OFFSET(var,offset) \
__asm ("lis  %0," #var "@tprel@ha\n" \
"addi %0,%0, " #var "@tprel@l\n" \
: "=r" (offset))

In mono-compiler.h

Thank you!


Rocket Software, Inc. and subsidiaries ? 77 Fourth Avenue, Waltham MA 02451 ? 
+1 877.328.2932 ? +1 781.577.4321
Unsubscribe From Commercial Email - unsubscr...@rocketsoftware.com
Manage Your Subscription Preferences - 
http://info.rocketsoftware.com/GlobalSubscriptionManagementEmailFooter_SubscriptionCenter.html
Privacy Policy - http://www.rocketsoftware.com/company/legal/privacy-policy


This communication and any attachments may contain confidential information of 
Rocket Software, Inc. All unauthorized use, disclosure or distribution is 
prohibited. If you are not the intended recipient, please notify Rocket 
Software immediately and destroy all copies of this communication. Thank you.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] about appdomain and threads.

2016-07-08 Thread Zhanxing Ding
Hi all,

Can anyone could tell me about the relationship between appdomain and threads?
The details are that:

If creating a new appdomian must create a new thread corresponding to it?
If so, how can I trace the process of creating the thread using gdb.

And does anyone has some materials about the appdomain and threads?

Thank you in advance!




Rocket Software, Inc. and subsidiaries ? 77 Fourth Avenue, Waltham MA 02451 ? 
+1 877.328.2932 ? +1 781.577.4321
Unsubscribe From Commercial Email - unsubscr...@rocketsoftware.com
Manage Your Subscription Preferences - 
http://info.rocketsoftware.com/GlobalSubscriptionManagementEmailFooter_SubscriptionCenter.html
Privacy Policy - http://www.rocketsoftware.com/company/legal/privacy-policy


This communication and any attachments may contain confidential information of 
Rocket Software, Inc. All unauthorized use, disclosure or distribution is 
prohibited. If you are not the intended recipient, please notify Rocket 
Software immediately and destroy all copies of this communication. Thank you.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Parameter on the stack overlap

2016-05-12 Thread Zhanxing Ding
Hi all,

Now I am porting mono to aix,
I met a problem that is,
When convert from decimal to flaot, I found the parameter d of the 
mono_decimal_to_float (d=...)
function overlapped, so I can't get the correct content of the parameter.

Prologue of the function:

mono_decimal_to_float (d=...) at decimal-ms.c:2369(which is an Internal Call)
2369{
=> 0x1021925c :7c 08 02 a6 mflrr0
   0x10219260 :90 01 00 08 stw r0,8(r1)
   0x10219264 :93 e1 ff fc stw 
r31,-4(r1)
   0x10219268 :   94 21 ff a0 stwu
r1,-96(r1)
   0x1021926c :   7c 3f 0b 78 mr  r31,r1
   0x10219270 :   90 7f 00 78 stw 
r3,120(r31)
   0x10219274 :   90 9f 00 7c stw 
r4,124(r31)
   0x10219278 :   90 bf 00 80 stw 
r5,128(r31)
   0x1021927c :   90 df 00 84 stw 
r6,132(r31)

Parameter d is the MonoDecimal structure,
The address is 0x2ff22700, but when run the instruction stw r3,120(r31), 
one filed of  0x2ff22700  populated with
The value 0x2ff22700.

(gdb) info reg r31
r310x2ff22690   804398736

Anyone know why this happened?
Why it save the parameter where will overlap the value?

Thank you in advance!


Rocket Software, Inc. and subsidiaries ? 77 Fourth Avenue, Waltham MA 02451 ? 
+1 877.328.2932 ? +1 781.577.4321
Unsubscribe From Commercial Email - unsubscr...@rocketsoftware.com
Manage Your Subscription Preferences - 
http://info.rocketsoftware.com/GlobalSubscriptionManagementEmailFooter_SubscriptionCenter.html
Privacy Policy - http://www.rocketsoftware.com/company/legal/privacy-policy


This communication and any attachments may contain confidential information of 
Rocket Software, Inc. All unauthorized use, disclosure or distribution is 
prohibited. If you are not the intended recipient, please notify Rocket 
Software immediately and destroy all copies of this communication. Thank you.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Any one can give me some help about mono running on IBM PASE?

2016-03-06 Thread Zhanxing Ding
Hi mono developers,
Now I porting mono to IBM PASE, I have configured it and successfully compiled 
the mono runtime,
But after I resolved some running time errors, now I blocked at one point.
Details described as bellow:

Mono runtime -> native code (generated from C#)- > Mono runtime -> invoke lib 
function (cored here)

The specific code is this:
Mini-runtime.c:2334
return runtime_invoke (obj, params, exc, info->compiled_method);
in native code jump to mono_get_lmf_addr (runtime ),
in mono_get_lmf_addr function invoke any lib function like printf() will lead 
to a segment fault.

Anybody can give me some advices?
Is it about calling convention? ABI on aix? And how to handle it?

Kindly hope you can give me some hints.
Thank you!



Rocket Software, Inc. and subsidiaries ? 77 Fourth Avenue, Waltham MA 02451 ? 
+1 877.328.2932 ? +1 781.577.4321
Unsubscribe From Commercial Email - unsubscr...@rocketsoftware.com
Manage Your Subscription Preferences - 
http://info.rocketsoftware.com/GlobalSubscriptionManagementEmailFooter_SubscriptionCenter.html
Privacy Policy - http://www.rocketsoftware.com/company/legal/privacy-policy


This communication and any attachments may contain confidential information of 
Rocket Software, Inc. All unauthorized use, disclosure or distribution is 
prohibited. If you are not the intended recipient, please notify Rocket 
Software immediately and destroy all copies of this communication. Thank you.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] About porting Mono to aix (Mono-devel-list Digest, Vol 127, Issue 17)

2015-12-02 Thread Zhanxing Ding
Hi Jo,
I compiled the mono on aix system, but I run the mono it core dumped for a 
sigsegv on this line:
Mini-runtime: 2334
return runtime_invoke (obj, params, exc, info->compiled_method);

but when I tried to debug it using gdb, but I can't enter this function " 
runtime_invoke ", I know it is a pointer function,
how can I know the exact function name, and is it a lib function? Or is there 
any address  problem for this function running on aix?

Kindly hope get your reply,
thank you!

-Original Message-
From: Jo Shields [mailto:direct...@apebox.org] 
Sent: Monday, November 23, 2015 4:01 PM
To: Zhanxing Ding <zd...@rocketsoftware.com>; mono-devel-list@lists.ximian.com
Subject: Re: [Mono-dev] About porting Mono to aix (Mono-devel-list Digest, Vol 
127, Issue 17)

Monolite is platform-independent bytecode.

If you're getting a core dump, that comes from your mono runtime port.

In general, the low-hanging fruit for getting the runtime working are the tests 
in mono/mini - compile them on a Linux box (cd mono/mini && make check), 
transfer them over, and get all of them (8 I think) working without failures.

On 23/11/15 01:45, Zhanxing Ding wrote:
> Hi Jo,
> Thank you for your reply, I have got the latest monolite by running 
> "make get-monolite-latest", but when I compile the Mono C# compiler 
> mcs.exe using it, I got the core dumped, does the monolite support aix 
> currently? I know the mono currently just support Linux, windows, Mac OS.
> How can I continue to compile mono on aix without monolite which supports aix?
>
> Thank you!
>
> -Original Message-
> From: mono-devel-list-boun...@lists.ximian.com 
> [mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of Jo 
> Shields
> Sent: Friday, November 20, 2015 8:15 PM
> To: mono-devel-list@lists.ximian.com
> Subject: Re: [Mono-dev] About porting Mono to aix (Mono-devel-list 
> Digest, Vol 127, Issue 17)
>
>
>
> On 20/11/15 03:07, Zhanxing Ding wrote:
>> Hi,
>> Recently I tried to port mono to IBM aix6.1 system, did any one try 
>> to do this before, and I met a problem and I didn't know how to 
>> fixed, on compiling runtime module, it need a monolite to compile it, 
>> but I think there is not a supported version for aix, where can I get the 
>> source code of monolite, is it possible porting mono to aix.
> "monolite" is a minimal distribution of the Mono C# compiler mcs.exe, and its 
> dependencies - it is needed to compile the Mono C# compiler mcs.exe.
>
> Tarballs of Mono bundle monolite, but git builds you either need an 
> existing "mcs" in $PATH, or to obtain monolite separately
>
> "make get-monolite-latest" will use curl or wget to download a 
> compatible version of monolite to your source tree (into
> mcs/class/lib/monolite/)
> ___
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 
> Rocket Software, Inc. and subsidiaries ■ 77 Fourth Avenue, Waltham MA 
> 02451 ■ +1 800.966.3270 ■ +1 781.577.4321 Unsubscribe From Commercial 
> Email – unsubscr...@rocketsoftware.com Manage Your Subscription 
> Preferences - 
> http://info.rocketsoftware.com/GlobalSubscriptionManagementEmailFooter
> _SubscriptionCenter.html Privacy Policy - 
> http://www.rocketsoftware.com/company/legal/privacy-policy
> 
>
> This communication and any attachments may contain confidential information 
> of Rocket Software, Inc. All unauthorized use, disclosure or distribution is 
> prohibited. If you are not the intended recipient, please notify Rocket 
> Software immediately and destroy all copies of this communication. Thank you.

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] About porting Mono to aix (Mono-devel-list Digest, Vol 127, Issue 17)

2015-11-23 Thread Zhanxing Ding
Ok, thank you Jo, I understand.

-Original Message-
From: Jo Shields [mailto:direct...@apebox.org] 
Sent: Monday, November 23, 2015 4:01 PM
To: Zhanxing Ding <zd...@rocketsoftware.com>; mono-devel-list@lists.ximian.com
Subject: Re: [Mono-dev] About porting Mono to aix (Mono-devel-list Digest, Vol 
127, Issue 17)

Monolite is platform-independent bytecode.

If you're getting a core dump, that comes from your mono runtime port.

In general, the low-hanging fruit for getting the runtime working are the tests 
in mono/mini - compile them on a Linux box (cd mono/mini && make check), 
transfer them over, and get all of them (8 I think) working without failures.

On 23/11/15 01:45, Zhanxing Ding wrote:
> Hi Jo,
> Thank you for your reply, I have got the latest monolite by running 
> "make get-monolite-latest", but when I compile the Mono C# compiler 
> mcs.exe using it, I got the core dumped, does the monolite support aix 
> currently? I know the mono currently just support Linux, windows, Mac OS.
> How can I continue to compile mono on aix without monolite which supports aix?
>
> Thank you!
>
> -Original Message-
> From: mono-devel-list-boun...@lists.ximian.com 
> [mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of Jo 
> Shields
> Sent: Friday, November 20, 2015 8:15 PM
> To: mono-devel-list@lists.ximian.com
> Subject: Re: [Mono-dev] About porting Mono to aix (Mono-devel-list 
> Digest, Vol 127, Issue 17)
>
>
>
> On 20/11/15 03:07, Zhanxing Ding wrote:
>> Hi,
>> Recently I tried to port mono to IBM aix6.1 system, did any one try 
>> to do this before, and I met a problem and I didn't know how to 
>> fixed, on compiling runtime module, it need a monolite to compile it, 
>> but I think there is not a supported version for aix, where can I get the 
>> source code of monolite, is it possible porting mono to aix.
> "monolite" is a minimal distribution of the Mono C# compiler mcs.exe, and its 
> dependencies - it is needed to compile the Mono C# compiler mcs.exe.
>
> Tarballs of Mono bundle monolite, but git builds you either need an 
> existing "mcs" in $PATH, or to obtain monolite separately
>
> "make get-monolite-latest" will use curl or wget to download a 
> compatible version of monolite to your source tree (into
> mcs/class/lib/monolite/)
> ___
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 
> Rocket Software, Inc. and subsidiaries ■ 77 Fourth Avenue, Waltham MA 
> 02451 ■ +1 800.966.3270 ■ +1 781.577.4321 Unsubscribe From Commercial 
> Email – unsubscr...@rocketsoftware.com Manage Your Subscription 
> Preferences - 
> http://info.rocketsoftware.com/GlobalSubscriptionManagementEmailFooter
> _SubscriptionCenter.html Privacy Policy - 
> http://www.rocketsoftware.com/company/legal/privacy-policy
> 
>
> This communication and any attachments may contain confidential information 
> of Rocket Software, Inc. All unauthorized use, disclosure or distribution is 
> prohibited. If you are not the intended recipient, please notify Rocket 
> Software immediately and destroy all copies of this communication. Thank you.

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] About porting Mono to aix (Mono-devel-list Digest, Vol 127, Issue 17)

2015-11-22 Thread Zhanxing Ding
Hi Jo,
Thank you for your reply, I have got the latest monolite by running "make 
get-monolite-latest",
but when I compile the Mono C# compiler mcs.exe using it, I got the core 
dumped, does the monolite support
aix currently? I know the mono currently just support Linux, windows, Mac OS.
How can I continue to compile mono on aix without monolite which supports aix?

Thank you!

-Original Message-
From: mono-devel-list-boun...@lists.ximian.com 
[mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of Jo Shields
Sent: Friday, November 20, 2015 8:15 PM
To: mono-devel-list@lists.ximian.com
Subject: Re: [Mono-dev] About porting Mono to aix (Mono-devel-list Digest, Vol 
127, Issue 17)



On 20/11/15 03:07, Zhanxing Ding wrote:
> Hi,
> Recently I tried to port mono to IBM aix6.1 system, did any one try to
> do this before, and I met a problem and I didn't know how to fixed, on
> compiling runtime module, it need a monolite to compile it, but I
> think there is not a supported version for aix, where can I get the source 
> code of monolite, is it possible porting mono to aix.

"monolite" is a minimal distribution of the Mono C# compiler mcs.exe, and its 
dependencies - it is needed to compile the Mono C# compiler mcs.exe.

Tarballs of Mono bundle monolite, but git builds you either need an existing 
"mcs" in $PATH, or to obtain monolite separately

"make get-monolite-latest" will use curl or wget to download a compatible 
version of monolite to your source tree (into
mcs/class/lib/monolite/)
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Rocket Software, Inc. and subsidiaries ■ 77 Fourth Avenue, Waltham MA 02451 ■ 
+1 800.966.3270 ■ +1 781.577.4321
Unsubscribe From Commercial Email – unsubscr...@rocketsoftware.com
Manage Your Subscription Preferences - 
http://info.rocketsoftware.com/GlobalSubscriptionManagementEmailFooter_SubscriptionCenter.html
Privacy Policy - http://www.rocketsoftware.com/company/legal/privacy-policy


This communication and any attachments may contain confidential information of 
Rocket Software, Inc. All unauthorized use, disclosure or distribution is 
prohibited. If you are not the intended recipient, please notify Rocket 
Software immediately and destroy all copies of this communication. Thank you.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] About porting Mono to aix

2015-11-20 Thread Zhanxing Ding
Hi,
Thank you for your answer,
I think I can't use the Fedora people built mono for Fedora, because I need 
build it on aix system.
Now I met the problem is the monolite(in fact it is a basic.exe) can't run on 
aix, because maybe it not supported
aix, so  how can I get the source code of monolite and compile it on aix, if 
not, must I compile the first mono by monolite?

Thank you!

-Original Message-
From: mono-devel-list-boun...@lists.ximian.com 
[mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of Timotheus Pokorra
Sent: Friday, November 20, 2015 4:39 PM
To: mono-devel-list@lists.ximian.com
Subject: Re: [Mono-dev] About porting Mono to aix

Hello,
> Recently I tried to port mono to IBM aix6.1 system, did any one try to
> do this before,
>
> and I met a problem and I didn’t know how to fixed, on compiling
> runtime module, it need
>
> a monolite to compile it, but I think there is not a supported version
> for aix, where can I get the
>
> source code of monolite, is it possible porting mono to aix.

I know that the Fedora people are building Mono for ppc64 architecture. Perhaps 
you can use their mono to build your mono?
I don't know enough about monolite, but it seems the Fedora people are using 
the default monolite that comes with the mono tarball (at least on the first 
4.x build, after that the previous mono version is used for building).
See the history of builds of Mono for ppc64:
http://ppc.koji.fedoraproject.org/koji/packageinfo?packageID=4277
On each build, you get a link to the src rpm.
eg. the first successful bootstrap build of Mono 4:
http://ppc.koji.fedoraproject.org/koji/buildinfo?buildID=333854

hope this helps,
  Timotheus
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Rocket Software, Inc. and subsidiaries ■ 77 Fourth Avenue, Waltham MA 02451 ■ 
+1 800.966.3270 ■ +1 781.577.4321
Unsubscribe From Commercial Email – unsubscr...@rocketsoftware.com
Manage Your Subscription Preferences - 
http://info.rocketsoftware.com/GlobalSubscriptionManagementEmailFooter_SubscriptionCenter.html
Privacy Policy - http://www.rocketsoftware.com/company/legal/privacy-policy


This communication and any attachments may contain confidential information of 
Rocket Software, Inc. All unauthorized use, disclosure or distribution is 
prohibited. If you are not the intended recipient, please notify Rocket 
Software immediately and destroy all copies of this communication. Thank you.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] About porting Mono to aix

2015-11-19 Thread Zhanxing Ding
Hi,
Recently I tried to port mono to IBM aix6.1 system, did any one try to do this 
before,
and I met a problem and I didn't know how to fixed, on compiling runtime 
module, it need
a monolite to compile it, but I think there is not a supported version for aix, 
where can I get the
source code of monolite, is it possible porting mono to aix.

Any reply could be appreciate!

Thank you!
-Zhanxing Ding


Rocket Software, Inc. and subsidiaries ? 77 Fourth Avenue, Waltham MA 02451 ? 
+1 800.966.3270 ? +1 781.577.4321
Unsubscribe From Commercial Email - unsubscr...@rocketsoftware.com
Manage Your Subscription Preferences - 
http://info.rocketsoftware.com/GlobalSubscriptionManagementEmailFooter_SubscriptionCenter.html
Privacy Policy - http://www.rocketsoftware.com/company/legal/privacy-policy


This communication and any attachments may contain confidential information of 
Rocket Software, Inc. All unauthorized use, disclosure or distribution is 
prohibited. If you are not the intended recipient, please notify Rocket 
Software immediately and destroy all copies of this communication. Thank you.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list