cross platform
Ruslan Ermilov
ru at FreeBSD.org
Sun Feb 13 09:09:30 GMT 2005
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20050213/9b8dc7dd/attachment.bin
More information about the freebsd-current
mailing list