31 lines
873 B
C
31 lines
873 B
C
|
/*
|
||
|
* This is free software: you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License version 2, as
|
||
|
* published by the Free Software Foundation.
|
||
|
*
|
||
|
* this software is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with this software. If not, see <http://www.gnu.org/licenses/>.
|
||
|
*
|
||
|
* Author: Daniele Lacamera
|
||
|
*
|
||
|
*
|
||
|
*/
|
||
|
#include <stdint.h>
|
||
|
#include <stdio.h>
|
||
|
#include <unistd.h>
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
uint8_t c = 0;
|
||
|
int i;
|
||
|
for (i = 0; i < 4096 * 1024; i++, c++)
|
||
|
write(STDOUT_FILENO, &c, 1);
|
||
|
|
||
|
|
||
|
}
|