Go to advanced search

by lilzz
Mon Feb 08, 2016 12:08 am
Forum: Beginners
Topic: startup.s file _bss_start and _bss_end
Replies: 1
Views: 871

startup.s file _bss_start and _bss_end

Code: Select all

.extern __bss_start
.extern __bss_end

ldr r0, =__bss_start
ldr r1, =__bss_end
what are the actual values of _bss_start and _bss_end?
They are not given specific values in startup.s file
by lilzz
Sun Feb 07, 2016 9:36 am
Forum: Advanced users
Topic: What's tools and process to port Pi to FreeRTOS
Replies: 2
Views: 666

Re: What's tools and process to port Pi to FreeRTOS

stevech wrote:Makes no sense because RPi is intrinsically Linux based and the I/O drivers are for Linux.
What the heck you talking about?

intrinsicaly LINUX?? LOL,

I/O drivers are for Linux?? Again LOL.
by lilzz
Sun Feb 07, 2016 12:38 am
Forum: Advanced users
Topic: What's tools and process to port Pi to FreeRTOS
Replies: 2
Views: 666

What's tools and process to port Pi to FreeRTOS

https://github.com/jameswalmsley/RaspberryPi-FreeRTOS What's tools and process that generate the .ld , .mk files? How does it generate the linker file to link startup.S with application program? How does it generate the linker file to link FreeRTOS files with Pi Drivers files? any tutorial outthere ...
by lilzz
Wed Jan 20, 2016 9:01 pm
Forum: General programming discussion
Topic: why I can't change my POSIX2_VERSION?
Replies: 1
Views: 491

why I can't change my POSIX2_VERSION?

% getconf -a | grep ^POSIX2_VERSION
POSIX2_VERSION 200809


So i decide to change it.

% setenv POSIX2_VERSION 199209

but I check again, getconf -a | grep ^POSIX2_VERSION

still shows POSIX2_VERSION 200809

why I cannot change that?
by lilzz
Sun Jan 10, 2016 1:00 am
Forum: Beginners
Topic: RF interface device Output power
Replies: 2
Views: 374

RF interface device Output power

I have a device interface with Pi.

It said its RF output power is 20dBm and 100mW.

what does it mean 20 dBm?
by lilzz
Fri Jan 08, 2016 10:09 pm
Forum: Mathematica
Topic: I am using Octave for math but it doesn't have symbolic
Replies: 4
Views: 6556

I am using Octave for math but it doesn't have symbolic

it doesn't have symbolic solution or an equation.
Instead just plotting some numbers.

What can I learn from some plotting of graph?

Why people Octave is good for math?

Btw I am taking some math classed in college.
by lilzz
Wed Dec 30, 2015 7:19 pm
Forum: General programming discussion
Topic: Searching for a really fast Open source Lipsolver
Replies: 0
Views: 391

Searching for a really fast Open source Lipsolver

I runs into a problem with one open sourced lipsolver but it couldn't handle it
so I try Garobi which is 2/3x faster it able to free up 2000 variables but it's a proprietary library.

anyone knows a really fast open source Lipsolver outhere?
by lilzz
Mon Dec 28, 2015 11:41 pm
Forum: General programming discussion
Topic: Can I do regular expression search with google?
Replies: 1
Views: 530

Can I do regular expression search with google?

I like search for all email address that contains [email protected] The XXX can be any number of XXXs.
Can I do that with google search?

If Not, How should write something in Python/PHP to search the entire internet for a list of email addresses?
by lilzz
Sat Dec 26, 2015 9:36 pm
Forum: C/C++
Topic: Is it OK use "this" for Structure
Replies: 2
Views: 553

Is it OK use "this" for Structure

struct Object
{
string objstring;

}

void Object::funct (...)
{

this->objstring=" this is a test";
}


Can I treat the structure like a class?
by lilzz
Thu Dec 24, 2015 2:18 am
Forum: Python
Topic: printing a database error
Replies: 3
Views: 710

Re: printing a database error

invalid syntax.

Make no sense at all.
by lilzz
Wed Dec 23, 2015 11:37 pm
Forum: Python
Topic: printing a database error
Replies: 3
Views: 710

printing a database error

example_db.append("object1", "object2")

print example_db

this cause an error.

why?
by lilzz
Wed Dec 23, 2015 2:34 am
Forum: C/C++
Topic: Dumping the contents inside the following objects.
Replies: 1
Views: 430

Dumping the contents inside the following objects.

I would like to dump the content inside the object tmp_np which is a UllmanSet which if you know a key then you know the position and if you know the position , you know the key. Is there a standard C++ container that's similar to the Ullmanset. Ullmanset 's index starts at 0 and Ullmanset1's index ...
by lilzz
Mon Dec 21, 2015 3:04 pm
Forum: C/C++
Topic: output for nested std::map
Replies: 1
Views: 502

output for nested std::map

std::map<int, std::map<std::string, std::pair<int, std::string>>>mfvs;
I want to output the std::string the first part of inner map.

for (const auto& iter :mfvs)
{
std::cout << iter.second.first << "\n";
}
this gives me an error
by lilzz
Sat Dec 19, 2015 8:00 pm
Forum: C/C++
Topic: Trying to output std::Vector <Class1*> MyClass
Replies: 2
Views: 822

Trying to output std::Vector <Class1*> MyClass

class1 has a member m_name Since std:vector <class1*> Myclass is a vector of pointer to a class, Myclass =the element of the vector, which is a pointer a class1 Myclass ->m_name =gets the N_name of class1. I trying output the m_name for ( int i = 0; i < Myclass.size(); i++) { std::cout << (Myclass )...
by lilzz
Wed Dec 16, 2015 4:43 pm
Forum: C/C++
Topic: How to output values of std::map
Replies: 10
Views: 1659

Re: How to output values of std::map

@paeryn if std::set < class1, class 2> both class 1, class 2 has m_name, m_value for (const auto& iter : used) { iter.m_name //class2 or class2 m_name? iter.m_value //class1 or class 2 m_value? } your example is not clear
by lilzz
Tue Dec 15, 2015 9:49 pm
Forum: C/C++
Topic: How to output values of std::map
Replies: 10
Views: 1659

Re: How to output values of std::map

ok, my mistake.
the above is for std::set instead of std::map

I need a way to output for std::set.
by lilzz
Tue Dec 15, 2015 7:34 am
Forum: C/C++
Topic: How to output values of std::map
Replies: 10
Views: 1659

Re: How to output values of std::map

It doesn't present class functions or class variable when I do iter.first.
iter.first error :request for member first in iter, which is of pointer type class1 * const (maybe you meant to use -> ?


Iter->first error: class class1 has no member named first


So it doesn't work.
by lilzz
Tue Dec 15, 2015 5:31 am
Forum: C/C++
Topic: How to output values of std::map
Replies: 10
Views: 1659

Re: How to output values of std::map

what if the std::map<object1, object2> used = {{obj1, obj2} {obj3, obj4}}; for (const auto& iter : used) { std::cout << "object1 name: " <<(iter.first.m_name) << "object2 name: " << iter.second.m_name << "\n"; } That doesn't seem to work. iter.first. there is auto fill in element in my ide.
by lilzz
Mon Dec 14, 2015 9:10 pm
Forum: C/C++
Topic: How to output values of std::map
Replies: 10
Views: 1659

How to output values of std::map

std::map<uint8_t, int> inst_used; for (uint8_t gc : main_classes) { extend( inst_used, 0); std::cout << inst_used; } The code crashed when I did std:cout to show the values of inst_used. std::map what's the best way to display the entire values of inst_used. I try to debug and single-step it but th...
by lilzz
Thu Dec 10, 2015 8:28 am
Forum: C/C++
Topic: Parsing automatically??
Replies: 8
Views: 1441

Re: Parsing automatically??

The code actually like this ibs >> device >> width >> height >> n_nets >> packages >> loc_pin_glb_num >> iolatch >> ieren >> extra_bits >> gbufin >> tile_colbuf_tile >> tile_type >> net_names >> tile_nets_idx >> tile_nonrouting_cbits >> extra_cell_tile >> extra_cell_type >> extra_cell_mfvs >> n_cell...
by lilzz
Wed Dec 09, 2015 8:44 pm
Forum: C/C++
Topic: Parsing automatically??
Replies: 8
Views: 1441

Re: Parsing automatically??

nothing special about the ibstream . I don't see how it knows how to parse the data. class ibstream { private: std::istream &is; public: ibstream(std::istream &is_) : is(is_) {} void read(char *p, size_t n) { is.read(p, n); size_t rn = is.gcount(); if (is.bad() || rn != n) fatal(fmt("std::istream::r...
by lilzz
Tue Dec 08, 2015 6:35 pm
Forum: C/C++
Topic: Parsing automatically??
Replies: 8
Views: 1441

Parsing automatically??

std::string device; int width; int height; int n_tiles; int n_nets; int n_global_nets; std::map<int, int> net_global; std::map<std::string, Package> packages; std::map<Location, int> loc_pin_glb_num; ibstream &ibs ibs >> device >> width >> height >> n_nets >> packages >> loc_pin_glb_num There's dat...
by lilzz
Tue Dec 08, 2015 6:30 pm
Forum: C/C++
Topic: segmentation fault when debugging
Replies: 2
Views: 577

Re: segmentation fault when debugging

OK, I solved by using std::cout instead
by lilzz
Tue Dec 08, 2015 10:55 am
Forum: C/C++
Topic: segmentation fault when debugging
Replies: 2
Views: 577

segmentation fault when debugging

for (int i = 0; i < n_tiles; ++i) { for (const auto &p : tile_nets_idx[i]) { extend(tile_nets[i], net_names[p.first], p.second); } } Original code is as above. It runs fine. And I like to find out the values for p.first, p.second, net_names[p.first] so I modify the code as followed for (int i = 0; ...
by lilzz
Fri Nov 20, 2015 3:29 am
Forum: C/C++
Topic: what's this Ullmanset Class?
Replies: 1
Views: 465

what's this Ullmanset Class?

#include "vector.hh" #include <cstddef> #include <cassert> template<unsigned B> class BasedUllmanSet { size_t n; std::vector<int> key; BasedVector<unsigned, B> pos; public: BasedUllmanSet() : n(0) {} BasedUllmanSet(size_t cap) : n(0), key(cap), pos(cap) {} size_t capacity() const { return key.size(...

Go to advanced search