Computing

Facebook Twitter

Suresh Kumar Pakalapati's Linux Administration: How to Debug C Program using gdb in 6 Simple Steps. 50 Most Frequently Used UNIX / Linux Commands (With Examples) This article provides practical examples for 50 most frequently used commands in Linux / UNIX.

50 Most Frequently Used UNIX / Linux Commands (With Examples)

This is not a comprehensive list by any means, but this should give you a jumpstart on some of the common Linux commands. Bookmark this article for your future reference. Did I miss any frequently used Linux commands? Leave a comment and let me know. 1. tar command examples Create a new tar archive. $ tar cvf archive_name.tar dirname/ Extract from an existing tar archive. $ tar xvf archive_name.tar View an existing tar archive. $ tar tvf archive_name.tar More tar examples: The Ultimate Tar Command Tutorial with 10 Practical Examples 2. grep command examples Search for a given string in a file (case in-sensitive search). $ grep -i "the" demo_file Print the matched line, along with the 3 lines after it. $ grep -A 3 -i "example" demo_text Search for a given string in all files recursively $ grep -r "ramesh" * More grep examples: Get a Grip on the Grep!

3. find command examples # find -iname "MyCProgram.c" $ awk '! How to Debug Using GDB. Tutorial on how-to use GDB, the Linux debugger on Linux machines - a hands-on training using GDB commands and options. Invoking the gdb, gdb the testbuff program (the executable file).

Tutorial on how-to use GDB, the Linux debugger on Linux machines - a hands-on training using GDB commands and options

[bodo@bakawali testbed5]$ gdb testbuff GNU gdb Red Hat Linux (6.1post-1.20040607.43rh) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

List the testbuff source code. (gdb) l 6 char buff[4]; 7 printf("Some input: "); 8 gets(buff); 9 puts(buff); 12 int main(int argc, char *argv[]) 14 Test(); (gdb) 15 return 0; Set the breakpoint at main(), means if you run, that does not include line of the breakpoint. (gdb) break main Breakpoint 1 at 0x8048422: file testbuff.c, line 14. Run the program in gdb without the argument(s). (gdb) run Starting program: /home/bodo/testbed5/testbuff Stepping up the running. The ACM-ICPC International Collegiate Programming Contest. About ICPC The ACM International Collegiate Programming Contest (ICPC) is a multitier, team-based, programming competition operating under the auspices of ACM and headquartered at Baylor University.

The ACM-ICPC International Collegiate Programming Contest

The contest involves a global network of universities hosting regional competitions that advance teams to the ACM-ICPC World Finals. Participation has grown to several tens of thousands of the finest students and faculty in computing disciplines at almost 2,330 universities from over 91 countries on six continents. The contest fosters creativity, teamwork, and innovation in building new software programs, and enables students to test their ability to perform under pressure. Quite simply, it is the oldest, largest, and most prestigious programming contest in the world.

Continue with the link below. Octave. GNU Octave is a high-level interpreted language, primarily intended for numerical computations.

Octave

It provides capabilities for the numerical solution of linear and nonlinear problems, and for performing other numerical experiments. It also provides extensive graphics capabilities for data visualization and manipulation. Octave is normally used through its interactive command line interface, but it can also be used to write non-interactive programs. The Octave language is quite similar to Matlab so that most programs are easily portable. Octave is distributed under the terms of the GNU General Public License. Version 3.8.2 is a bug fixing release and is now available for download. One of the biggest new features for the Octave 3.8.x release series is a graphical user interface. Given the length of time and the number of bug fixes and improvements since the last major release Octave, we also decided against delaying the release any longer.

We need your help. Where to buy Electronic components in Delhi. Well i can tell you the specific shop in lajpat rai market. Everest Sales Corporation Shop No 629 Lajpat Rai Deals in : Motors ( All types ) , Gears , Drivers etc Mehta Brothers Shop No 614 Deals in : ICs , SMDs , uC's , LCD , Drivers etc Kits'n'spares 303 Dohil Chambers, Nehru Place ICs, kits, EFY products Industrial Electronics Corp. Nehru Place ICs, Connectors,etc Sahil Electronics 404 Lajpat Rai Mkt LEDs,segmented displays, caps, wires, cabinets Jyoti Electronics 594 Lajpat Rai Mkt Passives, Discrete devices, Accessories, Power devices in all above everest is the one where you can get all your stuff.....this guy on this shop doesnt bargain try if u can....

EEVblog. All content related to programming. ZetCode, tutorials for programmers. Journey of a C Program to Linux Executable in 4 Stages. You write a C program, use gcc to compile it, and you get an executable.

Journey of a C Program to Linux Executable in 4 Stages

It is pretty simple. Right? Have you ever wondered what happens during the compilation process and how the C program gets converted to an executable? There are four main stages through which a source code passes in order to finally become an executable. The four stages for a C program to become an executable are the following: Pre-processingCompilationAssemblyLinking In Part-I of this article series, we will discuss the steps that the gcc compiler goes through when a C program source code is compiled into an executable.

Before going any further, lets take a quick look on how to compile and run a ā€˜Cā€™ code using gcc, using a simple hello world example. $ vi print.c #include <stdio.h> #define STRING "Hello World" int main(void) { /* Using a macro to print 'Hello World'*/ printf(STRING); return 0; } Now, lets run gcc compiler over this source code to create the executable. $ gcc -Wall print.c -o print In the above command: $ . Compiling and Linking. When programmers talk about creating programs, they often say, "it compiles fine" or, when asked if the program works, "let's compile it and see".

Compiling and Linking

This colloquial usage might later be a source of confusion for new programmers. Compiling isn't quite the same as creating an executable file! Instead, creating an executable is a multistage process divided into two components: compilation and linking. In reality, even if a program "compiles fine" it might not actually work because of errors during the linking phase. The total process of going from source code files to an executable might better be referred to as a build. Compilation Compilation refers to the processing of source code files (.c, .cc, or .cpp) and the creation of an 'object' file. Linking Linking refers to the creation of a single executable file from multiple object files. You might ask why there are separate compilation and linking steps. D Programming Language. Python Programming Language. Kivy.

Cython: C-Extensions for Python. Gnuplot tutorial - Physics. From Physics By Dr R Lindebaum Introduction Gnuplot is a powerful plotting program which has many useful features.

Gnuplot tutorial - Physics

Both Linux and Windows version are available. This tutorial is aimed at helping students use gnuplot for their projects. There is a fairly comprehensive help system in gnuplot. Help <topic> for example help plot This will give help on this command and provide a list of subtopics at the end, which will look like Subtopics available for plot: acsplines bezier binary csplines You can now type in the subtopic, eg. bezier to get more information on how the to plot bezier curves. Help plot bezier For many of the commands that I will discuss here, there are many more options that you can use than the ones I discuss. the use of help command will describe the command in full. Interactive and batch modes Gnuplot can be run either interactively, where you type in commands and gnuplot executes those commands as you type them. Gnuplot plot1.gnu gnuplot gnuplot> load 'plot1.gnu' Quickstart 2d plots. Inspiring Creations.

Rascal Micro: small computers for art and science. Free and open ARM Cortex M3 and Cortex M0 embedded development tools. Introduction to ARM Cortex-M3 Part 1-Overview. Hello, this is an introduction to the ARM Cotrex-M3 microprocessor. In the first part we'll talk about the core features of the Cortex-M3, the LPC1768 MCU and the prototyping board mbed, if you decide to get started with ARM this series should have a fair amount of information to help you do so quickly... have fun :) Cortex-M3 overview The Cortex-M3 is a 32-bit microprocessor made by ARM based on the ARMv7 architecture, this a Harvard architecture, i.e. separate code and data buses allowing parallel instruction and data fetches, with three profiles, A for high-end applications, R for real time applications and the microcontroller targeted M profile. The Cortex-M3 is based on the M profile it has a 3 stage pipeline, an advanced interrupt controller (NVIC ) with low interrupt latency, DMA controller with 8 32-bit channels, support for an optional MPU (the LPC17xx has one), support for two operation and two access modes and support for the Thumb2 instruction set.

Thumb2 Operation Modes mbed. STM32VLDISCOVERY programming tutorial. STM32VLDISCOVERY evaluation board STM32 Value-line discovery board is a low-cost evaluation board for Value-line of STM32 microcontrollers from STMicroelectronics.

STM32VLDISCOVERY programming tutorial

Value line of STM32 microcontrollers are low cost version of higher devices. It's can run on 24MHz and dont have some of peripherals avaiable on higher devices. On this board is soldered 64-pin value-line STM32 (with ARM Cortex-M3 core) microcontroller and ST-Link debugger, so board is complede hardware needed to run programs for STM32 devices! You olny need USB cable for connection board to PC. Of course, we need build some external hardware because on the STM32LVDISCOVERY are mounted only two LEDs and two pushbuttons - one for RESET and one for user application purposes. This tutorial shows you how to write applications for STM32 devices without use STM32 StdPeriph Library.

Free toolchains for STM32VLDISCOVERY. How to program the STM32VLDISCOVERY board?

Free toolchains for STM32VLDISCOVERY

ST does not provide a toolchain themselves, instead there are three different officially supported toolchains available, for which ST has provided simple tutorials. All of the three official toolchains are for Windows, so Linux users have to think of something else. Fortunately, multiple options exist for also Linux users. Here's an overview of all the tools I'm aware of. First off, I'll explain the easy, official options. Officially promoted toolchains ST provides example code and documentation for three toolchains: Atollic TrueSTUDIO, IAR Embedded Workbench and Keil MDK-ARM. Below are some quick facts & links about the official toolchains. Atollic TrueSTUDIO (Windows) This is an Eclipse-based development platform that includes an optimizing C/C++ compiler, editor and a debugger.

Download Atollic TrueSTUDIO for STM32 hereLite version vs. IAR Embedded Workbench (Windows) The Kickstart edition is a free version of the IAR Embedded Workbench. Free online course on Embedded Systems Design.