vijayan
2011-08-17 14:28:34 UTC
memory:3.2 gb
processor:core i5 cpu 650@3.20ghz
but actual hardware configuration of my ram is 8gb ddr3 1.3 ghz but due to using 32bit os it restricted upto 4gb of ram only coming to the real part
when i type the following program
************************************************
/*Name:pun*/
/*Purpose:prints a bad pun*/
/*Author:vijayan*/
#include
int main(void)
{
printf("To c,or not to c: that is the question.\n");
return 0;
}
************************************************************
then i open the terminal using x-terminal-emulator command and go to the path
and compile the program in many ways. even in the following sort of way as mentioned below
********************************************************************************
gcc -m32 -o pun pun.c
*******************************************************************************
it replies that
*********************************************************************************
/usr/bin/ld: unrecognised emulation mode: 32
Supported emulations: elf_i386 i386linux elf_x86_64 elf_l1om
collect2: ld returned 1 exit status
**********************************************************************************
then i tried like this also fails
*********************************************************************************
gcc -o -melf_i386 pun.c
*************************************************************************************
then i try to execute (note:compilation is successful but execution is failure)
using ./pun
it say permission denied
i think its a problem due to 64bit or 32 bit architecture.
********************
* *
*need a solution:*
* *
********************
i can compile c program but while i execute it show
************************************************
bash: ./pun: Permission denied
***************************************************