Pedro Alves | 22 Oct 2006 16:15
Picon
Favicon

[commit] putc missing return.

Hi guys,

'putc' in mingw/include/stdio.h was missing a 'return'.
Fixed in trunk with the patch below.

Cheers,
Pedro Alves

---

2006-10-22  Pedro Alves  <pedro_alves@...>

       * include/stdio.h (puts) [__COREDLL__]: Add missing return.

Index: include/stdio.h
===================================================================
--- include/stdio.h	(revision 746)
+++ include/stdio.h	(working copy)
 <at>  <at>  -322,7 +322,7  <at>  <at> 
 #else /* __COREDLL__ */

 __CRT_INLINE int __cdecl getc (FILE* __F) { return fgetc(__F); }
-__CRT_INLINE int __cdecl putc (int __c, FILE* __F) { fputc (__c, __F); }
+__CRT_INLINE int __cdecl putc (int __c, FILE* __F) { return fputc (__c, __F); }
 _CRTIMP int __cdecl getchar (void);
 _CRTIMP int __cdecl putchar(int __c);

(Continue reading)

Pedro Alves | 22 Oct 2006 19:46
Picon
Favicon

[commit] Adapt mingw/test_headers.c

Hi all,

I just committed a patch that enables test_headers.c to compile with
current mingw32ce. This is useful for mingw/include header testing.

Cheers,
Pedro Alves

---

2006-10-22  Pedro Alves  <pedro_alves@...>

    * test_headers.c: Adapt to __COREDLL__.

Index: test_headers.c
===================================================================
--- test_headers.c	(revisão 747)
+++ test_headers.c	(cópia de trabalho)
 <at>  <at>  -1,20 +1,28  <at>  <at> 
 #include <_mingw.h>
 #include <assert.h>
+#ifndef __COREDLL__
 #include <conio.h>
+#endif
 #include <ctype.h>
+#ifndef __COREDLL__
 #include <dir.h>
 #include <direct.h>
(Continue reading)

Pedro Alves | 22 Oct 2006 20:01
Picon
Favicon

[commit] Enable mingwex, and add a few wince specific files.

Hi all,

I just committed a change, to enable mingwex to be compiled for wince too.
Well, a subset of mingwex, for now.

I introduced a new mingwex/wince subdir for code that is wince specific.
Code in that subdir adds functions that exist on desktop versions of windows
but don't exist in coredll.
mingwex is compiled into a static lib, so we can add code here, more or 
less without
worrying about bloat. Of course, we should try to put one function per 
file, so the linker
sucks the less possible in.
The functions I have put there were required by 2 projects I am working 
on, and I can
only guess they will be needed by a lot of other projects, so it makes 
sense to not duplicate
this code everywhere. Note that for the time related functions, I didn't 
export tzname, etc,
and all the usually DATA members, because this being a static lib, all 
hell would brake lose
when different images (exes, dlls) would each access their version of 
those members.
If we turn out to realize that we need them very bad in a lot of 
projects, we will need
to move those time related functions into a dll, an then we will be able 
to export the DATA
members without worry.

Well, enough talk, patch below.
(Continue reading)

Pedro Alves | 22 Oct 2006 20:38
Picon
Favicon

[commit] libstd++ cleanup some more (time functions).

Hi all,

My latest mingwex commit enables a bit of cleaning up of libstdc++.
Also, since these functions were currently disabled,
building a libstdc++-6.dll with src/script.sh was broken, as full 
closure was
not possible.

Cheers,
Pedro Alves

---

src/gcc/libstdc++-v3/ChangeLog.ce

2006-10-22  Pedro Alves  <pedro_alves@...>

        * config/locale/generic/time_members.cc :
        (__timepunct<char>::_M_put): Enable on __MINGW32CE__.
        (__timepunct<char>::_M_initialize_timepunct) : Likewise.
        (__timepunct<wchar_t>::_M_put) : Likewise.
        (__timepunct<wchar_t>::_M_initialize_timepunct) : Likewise.

Index: config/locale/generic/time_members.cc
===================================================================
--- config/locale/generic/time_members.cc	(revisão 746)
+++ config/locale/generic/time_members.cc	(cópia de trabalho)
 <at>  <at>  -39,7 +39,6  <at>  <at> 
(Continue reading)

Andy Wu | 24 Oct 2006 10:49
Picon
Gravatar

Is it possible to support vfp abi for wince 6.0?

Hi all,

The wince 6.0 will be released soon, which will update the ABI to support VFP (ARM11). Is it possible to enable the hard floating point ABI to cegcc? Or anybody know any floating support in the current cegcc code. What I know is that the current cegcc only support soft-abi (hardware floating VFP code can be generated in the function but the interface is still based on soft-ABI)...

--

B. R.

Andy

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@...
https://lists.sourceforge.net/lists/listinfo/cegcc-devel
Pedro Alves | 24 Oct 2006 15:43
Picon
Favicon

Re: Is it possible to support vfp abi for wince 6.0?

Hi Andy,

Andy Wu wrote:

> Hi all,
>
> The wince 6.0 will be released soon, which will update the ABI to 
> support VFP (ARM11). Is it possible to enable the hard floating point 
> ABI to cegcc? Or anybody know any floating support in the current 
> cegcc code. What I know is that the current cegcc only support 
> soft-abi (hardware floating VFP code can be generated in the function 
> but the interface is still based on soft-ABI)...
>

Could you please share the pointer to the source of this information? I 
can't find anything related to an ABI change.
I would be very interested.

The only link I have regarding VFP on WinCE is this:
http://msdn.microsoft.com/chats/transcripts/mobileembedded/06_0830_msdn_wince.aspx
What I understand from that discussion is that an OEM can implement an 
optimized floating  point library using VFP
if the target has support for it, but it doesn't mention anything about 
the ABI being incompatible.

Cheers,
Pedro Alves

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Trevor MacPhail | 25 Oct 2006 18:28
Picon
Picon
Favicon

x86-wince-pe-gcc?

Is it possible for me to modify the cegcc build scripts to compile an  
x86 targeted compiler? Specifically for running in the windows mobile  
2003 emulator in embedded visual studio which is x86 instead of arm.  
I can't use visual studio to compile it because my code is not visual  
studio friendly apparently. (My code compiled for arm by visual  
studio crashes constantly while the same code compiled by arm-wince- 
pe-gcc  works perfectly)

--

-- 
Trevor MacPhail

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Pedro Alves | 25 Oct 2006 19:58
Picon
Favicon

Re: Is it possible to support vfp abi for wince 6.0?

Hi Andy,

Andy Wu escreveu:
 > Hi Pedro,
 >
 >

 > On 10/24/06, *Pedro Alves* < pedro_alves@...
 > <mailto:pedro_alves@...>> wrote:
 >
 >     Hi Andy,
 >
 >     Andy Wu wrote:
 >
 >     > Hi all,
 >     >
 >     > The wince 6.0 will be released soon, which will update the ABI to
 >     > support VFP (ARM11). Is it possible to enable the hard floating
 >     point
 >     > ABI to cegcc? Or anybody know any floating support in the current
 >     > cegcc code. What I know is that the current cegcc only support
 >     > soft-abi (hardware floating VFP code can be generated in the
 >     function
 >     > but the interface is still based on soft-ABI)...
 >     >
 >
 >     Could you please share the pointer to the source of this
 >     information? I
 >     can't find anything related to an ABI change.
 >     I would be very interested.
 >
 >     The only link I have regarding VFP on WinCE is this:
 >     
http://msdn.microsoft.com/chats/transcripts/mobileembedded/06_0830_msdn_wince.aspx
 >     What I understand from that discussion is that an OEM can 
implement an
 >     optimized floating  point library using VFP
 >     if the target has support for it, but it doesn't mention anything
 >     about
 >     the ABI being incompatible.
 >
 >
 > I don't think microsoft will change any ABI spec based on ARM's spec.
 > Here is the information from ARM:
 > http://www.arm.com/products/DevTools/ABI.html
 >

I don't think so too, that's why I asked for pointers. :)

 > I'm not sure if gcc support vfp ABI at elf or other obj format... If
 > the answer is yes, I think enable the vfp ABI for
 > wince pe is not ver difficult. I think this is a very cool and new
 > feature for this project. It will be very useful when
 > wince 6.0 released.
 >
 > Do you any ideas on this topic?

It doesn't have to do with the object format. It has to do with
gcc's ability to emit vfp instructions and still be compatible with
the float ABI required by WinCE.

(soft abi stores floats/doubles always in big endian format, and 
softvp/vfp uses the native endianess.)

Gcc doesn't emit vfp instructions when using
-mfloat-abi=soft, only when using `-mfloat-abi=softfp -mfpu=vfp`

Since we must stay compatible with WinCE's float ABI, we can't
change to softfp ABI, like linux arm distributions are doing.

To be able to emit vfp instructions directly, and still be compatible
with  WinCE, someone will have to change gcc. A very nice project indeed.

(Note that the assembler (gas) accepts VFP, it is gcc that doesn't emit it.)

The float ABI is something that has been on my todo list,
like confirming the alignments, packing, endianess, calling conventions 
related to floats/doubles.
I would really like to find some authorative (MSDN/Microsoft) 
information about this.

Cheers,
Pedro Alves

P.S.: Please don't top post, inline/bottom post instead.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Danny Backx | 25 Oct 2006 20:28
Picon
Favicon

Re: x86-wince-pe-gcc?

On Wed, 2006-10-25 at 09:28 -0700, Trevor MacPhail wrote:
> Is it possible for me to modify the cegcc build scripts to compile an  
> x86 targeted compiler? Specifically for running in the windows mobile  
> 2003 emulator in embedded visual studio which is x86 instead of arm.  

I would expect that you can run much of the scripting in scripts/linux;
probably the only place to fix is line 50 in build.sh :
	for TGT_ARCH in arm-wince-cegcc arm-wince-mingw32ce

I have no idea how well it'll work though.

	Danny

> I can't use visual studio to compile it because my code is not visual  
> studio friendly apparently. (My code compiled for arm by visual  
> studio crashes constantly while the same code compiled by arm-wince- 
> pe-gcc  works perfectly)
> 
--

-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@...
https://lists.sourceforge.net/lists/listinfo/cegcc-devel
Pedro Alves | 25 Oct 2006 20:28
Picon
Favicon

Re: x86-wince-pe-gcc?

Trevor MacPhail wrote:

>Is it possible for me to modify the cegcc build scripts to compile an  
>x86 targeted compiler? Specifically for running in the windows mobile  
>2003 emulator in embedded visual studio which is x86 instead of arm.  
>I can't use visual studio to compile it because my code is not visual  
>studio friendly apparently. (My code compiled for arm by visual  
>studio crashes constantly while the same code compiled by arm-wince- 
>pe-gcc  works perfectly)
>
>  
>

No, not just the build scripts.
The easiest approach would be to download an x86 mingw compiler,
tweak our version of src/mingw (taillored for wince/coredll) so it 
builds for x86 but with the coredll runtime,
and change the default subsystem to 9 (CE) by command line switches.
You would then be able to compile your app for the emulator.
But, why bother? You can get an arm emulator from MS for free:
http://www.microsoft.com/downloads/details.aspx?familyid=C62D54A5-183A-4A1E-A7E2-CC500ED1F19A&displaylang=en

There is an page on the old berlios Wiki about this:
http://cegcc.berlios.de/wiki/index.php/Usage

Cheers,
Pedro Alves

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Gmane