Saturday, 15 November 2014

How to install gcc in Windows


gcc installation on Windows:

gcc is a C compiler implemented by GNU. It is generally available with different flavors of Linux as an inbuilt tool. Now gcc is also available for Windows. MinGW is a project whose goal is to provide runtime, headers and libs to develop window applications using gcc. The official web site of Equation Solution www.equation.com provides gcc compiler for Windows XP (32bit) and Windows 7/8 (64bit) as separate builds. The latest versions of MinGW gcc implement ISO/IEC C11 standards.
Now we will see step by step procedure of installation and usage of MinGW gcc on Windows.
Installation:
Step1: open the site of “Equation Solutions” by clicking on the link ww.equation.com
Select Home – Programming tools – FORTRAN, C, C++ from Navigation Tree
download link of mingGW gcc
Step2: Go down to the page and select proper gcc build according to your platform that is gcc 32bit for Windows XP or gcc 64bit for Windows 7/8.
different builds of mingGW gcc
Step3: Create an installation folder (c:\MinGW)
Step4: Double click on downloaded “gcc setup executable file”
installation of gcc
Step5: Accept the agreement
gcc agrement
Step6: Select “Browse” to select installation folder (Example: c:\MinGW) and  Select “install” to proceed installation in the selected folder c:\MinGW
gcc installation
Step7: Select “finish” to complete installation
finishing installation

Executing C program using gcc:

Step1: Open the text editor “Notepad” by selecting start button, typing notepad in command text field and press enter. In case of Windows XP select start – select run – type notepad – select open
opening notepad in windows 7
Step2: Type the program in the text editor (notepad)
1
2
3
4
5
6
7
8
9
#include
void main()
{
int x,y,z;
x=10;
y=20;
z=x+y;
printf("Sum of two numbers: %d",z);
}
simple c program
Step3: Save the program with .c extension under a particular directory by selecting file – save. Here, I am saving under d:\demo as first.c
saving c program
Close the editor by selecting file – exit
Step4: Open the command prompt to compile and execute the program by selecting start button, typing cmd in command text field and press enter (¿). In case of Windows XP select start – select run – type cmd – select open.
opening command prompt in windows 7
Step5: Compile the program using the C compiler gcc. The compiler translates the source code and produces equalant executable code with the name a.exe (produces a.out in case of Linux). It can be executed by giving its name directly at the command prompt.
d:\>cd demo
d:\demo>gcc first.c
d:\demo>a
gcc on windows
Here there is a problem with the executable file a.exe because the output of gcc for every C program is a.exe. The executable code of current program overwrites the executable code of previous program compiled. If we want to execute the previous program then need to be recompiled.
We can produce different executable files with different names by sending parameter –o to gcc while compiling.
The general form of –o parameter is
Syntax of gcc
d:\>cd demo
d:\demo>gcc -o first first.c
d:\demo>first
gcc on windows
Here option –o generated the executable file with the name “first.exe” instead “a.exe”. It is executed by giving its name at terminal prompt. Like wise we can generate different executable files for different C programs.

Saturday, 1 November 2014

What is the difference between Intel Core i3 ,Core i5 and Core i7?


Core i3 belongs to a family of dual core, 64-bit, x86 CPUs from Intel intended for entry-level desktop and laptop computers. Introduced in 2010, the Core i3 is the third line in Intel's Core "i" branding (i3, i5, i7). The Core i3 chips do not include the Turbo Boost feature, which is found in i5 and i7 chips but include Hyper threading(that allows each processor core to work on two tasks at the same time for greater multitasking)technology.

Core i3 processors have an integrated GPU and two cores (all generations including first, second and third are dual core processors)

Core i5 belongs to a family of dual (first generation) and quad (second and third generation) core, 64-bit, x86 CPUs from Intel, introduced in 2009. The Core i5 chips are the midrange CPUs in the Core "i" line between the entry-level i3 and the high-performance i7 series. Certain models of the i5 family include the Turbo Boost feature

A family of 64-bit x86 CPUs having quad cores from Intel that were introduced in 2008 as the successor to Core 2.  The first models included a graphics processing unit (GPU) in the same chip package as the CPU including vastly improved graphics, battery life, and security—for a zero-compromise computing experience. With key features such as  Hyper-Threading Technology,(that allows each processor core to work on two tasks at the same time for greater multitasking) to the Intel® Iris™ graphics for stunning 3D visuals and faster, more advanced video and photo editing, the 4th generation Intel® Core™ i7 processor delivers top-of-the-line performance for your most demanding tasks.
  • Enhanced Memory Control

supporting three channels of DDR3 memory, the Core i7 contains its own memory controller that runs with a separate clock in the "uncore" area (a part of the chip that is not executing program instructions).
  • Quick Path and Turbo Boost

a major feature is the Quick Path system interconnect, which is a high-speed, packet-oriented, point-to-point pathway between the CPU cores and memory and between the cores and I/O hub. Depending on the multiprocessor capability supported by the chip model, an integrated crossbar router between the cores may be included.

The i7 line also introduced Turbo Boost, also available in some i5 models, which allows the speed of CPU cores to be adjusted 
In Short,
Core i3, i5 first gen= 2 core
Core i3 2nd and 3rd gen=2 core
Core i5 2nd and 3rd gen= 4core
core i7 =4 cores






All about Intel and AMD Processors


  1. Advanced Micro Devices, Inc. (AMD) is an American multinational semiconductor company  that develops computer processors and related technologies for business and consumer markets.  AMD's main products include microprocessors, motherboard chipsetsembedded processors and graphics processors for servers, workstations and personal computers, and embedded systems applications.
    AMD is the second-largest global supplier of microprocessors based on the x86 architecture and also one of the largest suppliers of graphics processing units.The Founder of AMD are Jerry Sanders and Edwin Turney
    The present CEO of Advanced Micro Devices is Rory Read

    Intel Corporation is an American multinational corporation headquartered in Santa Clara, California. Intel is one of the world's largest and highest valued semiconductor chip makers, based on revenue.It is the inventor of the x86 series of microprocessors, the processors found in most personal computers.
    Intel Corporation, founded on July 18, 1968, is a short form of Integrated Electronics. Intel also makes motherboard chipsetsnetwork interface controllersand integrated circuitsflash memorygraphic chipsembedded processors and other devices related to communications and computing.
    In 1968, Robert Noyce and Gordon Moore were two unhappy engineers working for the Fairchild Semiconductor Company who decided to quit and create their own company at a time when many Fairchild employees were leaving to create start-ups.

    The present CEO of Intel Corp. is Brian Krzanich


Saturday, 27 July 2013

The Fusing of technology and business models to create the 3D Internet

Social Networks, 3D Visualization / Simulation, Video Games and Virtual Worlds
IntroductionThe high-fidelity 3D video gaming, 3D visualization and simulation (VizSim) and virtual worlds (VW) markets are expanding rapidly due to