Re: cross platform

From: Ruslan Ermilov <ru_at_FreeBSD.org>
Date: Sun, 13 Feb 2005 11:09:28 +0200
On Sat, Feb 12, 2005 at 08:02:31PM -0500, Mathew Kanner wrote:
> On Feb 12, Ruslan Ermilov wrote:
> > Hi Mathew,
> > 
> > On Sat, Feb 12, 2005 at 09:55:02AM -0500, Mathew Kanner wrote:
> > > Hi All,
> > > 	I want to get midi working for amd64 and by fixing up the
> > > (kernel) printf directives, I have two stupid question:
> > >  - How do I compile a module for a different platform?
> > > 
> 
> > [...snap build directions...]
> 
> > >  - How do I know which is the right directive? Is this documented
> > >    somewhere? 
> > > 
> > Please see the build(7) manpage, it talks a bit about cross-builds.
> 
> 	Hi Ruslan,
> 
> 	Your (snipped) description is great!  We should you cross
> reference build(7) from make.conf(5).
> 	My second question, poorly worded, was to in regards to printf
> qualifiers in the kernel.  I not sure I know when to use which when it
> comes to system types.
> 	Thanks,
> 
Ah.  The safest way when dealing with integer types is to typecast
them to intmax_t/uintmax_t and use %jd/%ju format specifiers.


Cheers,
-- 
Ruslan Ermilov
ru_at_FreeBSD.org
FreeBSD committer

Received on Sun Feb 13 2005 - 08:09:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:28 UTC