cross-plat-dev-utils/get_wordsize.c
author Mike Kinghan <mikek@symbian.org>
Thu, 25 Nov 2010 13:59:07 +0000
changeset 40 68f68128601f
parent 29 86492ef8d086
permissions -rwxr-xr-x
1) Add the sbsv1 components from sftools/dev/build to make the linux_build package independent of the obsolete buildtools package. 2) Enhance romnibus.pl so that it generate the symbol file for the built rom when invoked by Raptor 3) Make the maksym.pl tool portable for Linux as well as Windows. 4) Remove the of armasm2as.pl from the e32tools component in favour of the copy now exported from sbsv1/e32util.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
     1
/*
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
     2
Copyright (c) 2010 Symbian Foundation Ltd
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
     3
This component and the accompanying materials are made available
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
     4
under the terms of the License "Eclipse Public License v1.0"
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
     5
which accompanies this distribution, and is available
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
     6
at the URL "http://www.eclipse.org/legal/epl-v10.html".
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
     7
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
     8
Initial Contributors:
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
     9
Mike Kinghan, mikek@symbian.org for Symbian Foundation Ltd - initial contribution.
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    10
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    11
Program to return the wordsize in bits of the host machine
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    12
*/
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    13
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    14
#include <stdio.h>
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    15
#include <stdlib.h>
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    16
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    17
int main(void)
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    18
{
29
86492ef8d086 1) Update cross-plat-dev-utils for gcc 4.4.3
Mike Kinghan <mikek@symbian.org>
parents: 10
diff changeset
    19
	printf("%lu\n",(unsigned long)sizeof(unsigned long));
10
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    20
	exit(0);
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    21
}
b2a53d442fd6 1) Introducing support for 32/64-bit variants of the patch files
mikek
parents:
diff changeset
    22